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
|
#!/usr/bin/make -f
# Copyright © 2017-2020 IOhannes m zmölnig
# under the LGPL-2.1+
DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -std=c99
%:
dh $@
execute_after_dh_auto_build:
dh_auto_build -- checkprograms
execute_after_dh_clean:
-find man/ -type l -delete
execute_after_dh_install:
find debian/libsndfile1-dev/ -name test_wrapper.sh -exec \
sed -e 's|^\(ABS_TOP_SRCDIR\)=.*|\1=$$\(pwd\)|' -i {} +
find debian/libsndfile1-dev/ -name pedantic-header-test.sh -exec \
sed -e 's| -I *[^ ]*| |g' -i {} +
find debian/libsndfile1-dev/usr/lib/ -name "*.sh" -exec \
chmod +x {} +
################ d/copyright helper ##############
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
debian/.*
# licensecheck v1
.PHONY: licensecheck
licensecheck:
LANG=C.UTF-8 licensecheck \
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
--check '.*' --recursive --deb-machine --lines 0 * \
> debian/copyright_newhints
cmp debian/copyright_hints debian/copyright_newhints \
&& rm debian/copyright_newhints
|