| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE = 1 |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 7 |
|
| 8 |
execute_after_dh_auto_install: |
| 9 |
rm -r debian/golang-github-iovisor-gobpf-dev/usr/bin |
| 10 |
|
| 11 |
execute_before_dh_auto_configure: copyright-scan |
| 12 |
|
| 13 |
copyright-scan: |
| 14 |
scan-copyrights >debian/[email protected] 2>debian/[email protected] |
| 15 |
( \ |
| 16 |
sed -e 's/^/# /' -e '/You may want to add a line in/q' debian/[email protected]; \ |
| 17 |
echo; \ |
| 18 |
cat debian/[email protected]; \ |
| 19 |
) | grep -v "Note: loading debian/fill.copyright.blanks.yml" >debian/[email protected] >debian/[email protected] |
| 20 |
diff -u debian/$@ debian/[email protected] |
| 21 |
rm debian/[email protected]* |
| 22 |
|
| 23 |
copyright-update: copyright-scan |
| 24 |
cme update -q dpkg-copyright |
| 25 |
|
| 26 |
.PHONY: copyright-scan copyright-update |