File: rules

package info (click to toggle)
golang-github-iovisor-gobpf 0.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, experimental
  • size: 716 kB
  • sloc: ansic: 2,716; makefile: 14; sh: 7
file content (23 lines) | stat: -rwxr-xr-x 635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

#export DH_VERBOSE = 1

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

execute_after_dh_auto_install:
	rm -r debian/golang-github-iovisor-gobpf-dev/usr/bin

execute_before_dh_auto_configure: copyright-scan

copyright-scan:
	scan-copyrights >debian/$@.new.tmp 2>debian/$@.new.todo.tmp
	(sed -e 's/^/# /' debian/$@.new.todo.tmp; echo; cat debian/$@.new.tmp) \
	  | grep -v "Note: loading debian/fill.copyright.blanks.yml" >debian/$@.new
	diff -u debian/$@ debian/$@.new
	rm debian/$@.new*

copyright-update: copyright-scan
	cme update -q dpkg-copyright

.PHONY: copyright-scan copyright-update