File: rules

package info (click to toggle)
qr-code-generator 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 708 kB
  • sloc: ansic: 2,058; java: 1,098; cpp: 934; python: 779; makefile: 153; xml: 99; sh: 15
file content (59 lines) | stat: -rwxr-xr-x 1,389 bytes parent folder | download
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/make -f
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND =

include /usr/share/dpkg/pkg-info.mk

export VERSION := $(DEB_VERSION_UPSTREAM)
export MULTIARCH := $(DEB_HOST_MULTIARCH)
export PYBUILD_SYSTEM := distutils


%:
	dh $@ --with python3

%-arch:
	dh $@

%-indep:
	dh $@ --with python3

clean:
	dh $@

override_dh_auto_clean-indep:
	dh_auto_clean --buildsystem=pybuild --sourcedirectory=python/
	rm -rf python/qrcodegen.egg-info

override_dh_auto_build-indep:
	dh_auto_build --buildsystem=pybuild --sourcedirectory=python/

override_dh_auto_install-indep:
	dh_auto_install --buildsystem=pybuild --sourcedirectory=python/

override_dh_auto_clean-arch:
	dh_auto_clean --sourcedirectory=c/
	dh_auto_clean --sourcedirectory=cpp/

override_dh_clean-arch:
	dh_clean -a
	rm -rf ./c/libqrcodegen.so.1 ./cpp/libqrcodegencpp.so.1

override_dh_auto_build-arch:
	dh_auto_build --sourcedirectory=c/
	dh_auto_build --sourcedirectory=cpp/

override_dh_auto_test-arch:
	ln -sf libqrcodegen.so ./c/libqrcodegen.so.1
	ln -sf libqrcodegencpp.so ./cpp/libqrcodegencpp.so.1
	cd python && python3 qrcodegen-batch-test.py
	rm -rf ./c/libqrcodegen.so.1 ./cpp/libqrcodegencpp.so.1

override_dh_auto_install-arch:
	dh_auto_install --sourcedirectory=c/
	dh_auto_install --sourcedirectory=cpp/