summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 045f061e946a243e9e989d08c7097a31a0a671f3 (plain)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

upstream:
	rm -f debian/local/dnstap.proto
	wget https://raw.githubusercontent.com/dnstap/dnstap.pb/master/dnstap.proto -O debian/local/dnstap.proto

%:
	dh ${@}

execute_after_dh_auto_clean:
	rm -f src/dnstap.pb/dnstap.proto

	# remove generated files
	rm -f src/dnstap.pb-c.h

execute_after_dh_auto_configure:
	mkdir -p src/dnstap.pb
	ln -s ../../debian/local/dnstap.proto src/dnstap.pb/dnstap.proto

execute_after_dh_auto_install:
	# removing unused files
	rm -f debian/tmp/usr/lib/*/*.la
	rm -f debian/tmp/usr/share/doc/*/README.md