| 1 |
#!/usr/bin/make -f |
| 2 |
# Copyright © 2017-2020 IOhannes m zmölnig |
| 3 |
# under the LGPL-2.1+ |
| 4 |
|
| 5 |
DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
export DEB_CFLAGS_MAINT_APPEND = -std=c99 |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
execute_after_dh_auto_build: |
| 12 |
dh_auto_build -- checkprograms |
| 13 |
|
| 14 |
execute_after_dh_clean: |
| 15 |
-find man/ -type l -delete |
| 16 |
|
| 17 |
execute_after_dh_install: |
| 18 |
find debian/libsndfile1-dev/ -name test_wrapper.sh -exec \ |
| 19 |
sed -e 's|^\(ABS_TOP_SRCDIR\)=.*|\1=$$\(pwd\)|' -i {} + |
| 20 |
find debian/libsndfile1-dev/ -name pedantic-header-test.sh -exec \ |
| 21 |
sed -e 's| -I *[^ ]*| |g' -i {} + |
| 22 |
find debian/libsndfile1-dev/usr/lib/ -name "*.sh" -exec \ |
| 23 |
chmod +x {} + |
| 24 |
|
| 25 |
################ d/copyright helper ############## |
| 26 |
DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ |
| 27 |
debian/.* |
| 28 |
# licensecheck v1 |
| 29 |
.PHONY: licensecheck |
| 30 |
licensecheck: |
| 31 |
LANG=C.UTF-8 licensecheck \ |
| 32 |
-i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \ |
| 33 |
--check '.*' --recursive --deb-machine --lines 0 * \ |
| 34 |
> debian/copyright_newhints |
| 35 |
cmp debian/copyright_hints debian/copyright_newhints \ |
| 36 |
&& rm debian/copyright_newhints |