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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#
# cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
#export DEB_CPPFLAGS_MAINT_APPEND = -Wno-unused-result -Wno-parentheses -Wno-error=format-security
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Force texlive to respect SOURCE_DATE_EPOCH for reproducibility of pdf user guide
export FORCE_SOURCE_DATE=1
include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=lib/$(DEB_HOST_MULTIARCH) -DUSER_GUIDE=ON
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dh_auto_test --no-parallel
endif
override_dh_compress:
dh_compress --exclude=.pdf
override_dh_install:
rm -rf debian/$(DEB_SOURCE)/usr/README.md debian/$(DEB_SOURCE)/build debian/$(DEB_SOURCE)/builds
override_dh_auto_clean:
dh_auto_clean
find . -name __pycache__ -type d | xargs rm -rf
|