summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a08002b0308a974239462166f9ff47bf901c84f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=eduvpn-common
PYWRAPPER_PATH := wrappers/python
DEB_VERSION := $(shell dpkg-parsechangelog --show-field=Version | cut -d '+' -f1 | cut -d '-' -f1)


override_dh_auto_install:
	dh_auto_install --sourcedirectory $(PYWRAPPER_PATH)

%:
	dh $@ --with python3 --buildsystem=pybuild


override_dh_auto_test:


override_dh_auto_clean:
	dh_auto_clean --sourcedirectory $(PYWRAPPER_PATH)

	GOCACHE="/tmp" go clean

override_dh_auto_configure:
	dh_auto_configure --sourcedirectory $(PYWRAPPER_PATH)

override_dh_auto_build:
	dh_auto_build --sourcedirectory $(PYWRAPPER_PATH)

	# Make go library
	GOCACHE="/tmp" CGO_ENABLED="1" go build -o lib/libeduvpn_common-$(DEB_VERSION).so -buildmode=c-shared ./exports


override_dh_builddeb:
	dh_builddeb -- -Zxz