File: rules

package info (click to toggle)
dnsjit 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,928 kB
  • sloc: ansic: 9,670; makefile: 328; sh: 193
file content (25 lines) | stat: -rwxr-xr-x 654 bytes parent folder | download | duplicates (2)
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

%:
	dh ${@}

execute_after_dh_auto_clean:
	# remove generated files
	rm -f src/core/compat.hh
	rm -f src/core/log_errstr.c
	rm -f src/test/dns.pcap.*-dist

	for file in $$(find . -type f -name "*.in"); \
	do \
		rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \
	done

execute_after_dh_install:
	# Removing useless files
	rm -f debian/dnsjit/usr/share/doc/dnsjit/LICENSE
	rm -f debian/dnsjit/usr/share/doc/dnsjit/README.md

execute_after_dh_installexamples:
	# Moving examples
	mkdir -p debian/dnsjit/usr/share/doc/dnsjit/examples
	mv debian/dnsjit/usr/share/doc/dnsjit/*.lua debian/dnsjit/usr/share/doc/dnsjit/examples