| 1 | #!/usr/bin/make -f |
| 2 | # Copyright © 2017 IOhannes m zmölnig |
| 3 | # under the GPL-2+ |
| 4 | |
| 5 | # Uncomment this to turn on verbose mode. |
| 6 | #export DH_VERBOSE=1 |
| 7 | |
| 8 | DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 | |
| 10 | %: |
| 11 | dh $@ |
| 12 | |
| 13 | DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ |
| 14 | debian/.*|docs/.*\.png |
| 15 | # licensecheck v1 |
| 16 | .PHONY: licensecheck |
| 17 | licensecheck: |
| 18 | LANG=C.UTF-8 licensecheck \ |
| 19 | -i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \ |
| 20 | --check '.*' --recursive --deb-machine --lines 0 * \ |
| 21 | > debian/copyright_newhints |
| 22 | cmp debian/copyright_hints debian/copyright_newhints \ |
| 23 | && rm debian/copyright_newhints |