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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
%:
dh $@
override_dh_gencontrol:
dh_gencontrol -- -Vmisc:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W binutils-dev)"
override_dh_auto_test:
mkdir $(shell pwd)/build-tests
cd $(shell pwd)/build-tests && cmake $(shell pwd)/tests
cd $(shell pwd)/build-tests && $(MAKE)
PYTHONPYCACHEPREFIX="$(shell pwd)/py-cache" PYTHONPATH="$(shell pwd)/tests/tools" \
python3 -m libkcov $(shell pwd)/obj-$(DEB_BUILD_GNU_TYPE)/src/kcov "$(shell pwd)/tests-temp" "$(shell pwd)/build-tests/" "." --no-ptrace -v
override_dh_auto_install:
dh_auto_install
# Policy: COPYING file is not needed
find ./debian -type f -name "COPYING" -delete
find ./debian -type f -name "COPYING.externals" -delete
|