blob: 9d51c15c075ded651895fd7b506e0da8d2ac8f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.DEFAULT_GOAL := pack
.PHONY: install-lib pack test clean
VERSION := $(shell grep -o 'const Version = "[^"]*' ../../internal/version/version.go | cut -d '"' -f 2)
install-lib:
rm -rf eduvpn_common/lib/*
install "../../lib/libeduvpn_common-${VERSION}.so" -Dt "eduvpn_common/lib"
# Build for current platform only
pack: install-lib
python3 -m build --sdist --wheel .
test: install-lib
python3 -m unittest tests
clean:
rm -rf build/ dist/ *.egg-info/ eduvpn_common/lib/* venv
|