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
|
#!/usr/bin/make -f
export prefix=/usr
override_dh_auto_test:
# Unset prefix set above as well as the Debian's hardening flags as they
# interfere with the canned output measured by "make -n" style tests used
# by zmk. Note that the test does not actually compile any software, just
# checks the set of build system commands issued.
unset prefix CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS CPPFLAGS LDFLAGS && dh_auto_test
override_dh_installexamples:
# Install examples except for the log files, which are a left-over from
# exercising the examples by the test suite.
dh_installexamples -X .log
override_dh_auto_clean:
# Remove log files created by the build process.
find . -name '*.log' -delete
# Remove generated configuration files used by the test process.
find tests/Configure -name 'config.*.mk' -delete
# Remove the generated configure script used by the test process.
find tests/Configure -name 'configure' -delete
# Run the regular clean logic
dh_auto_clean
%:
dh $@ --buildsystem=makefile
|