File: rules

package info (click to toggle)
hcxdumptool 6.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 768 kB
  • sloc: ansic: 7,980; sh: 131; makefile: 72; xml: 4
file content (19 lines) | stat: -rwxr-xr-x 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f $(CURDIR)/debian/hcxdumptool.manpages
	rm -f $(CURDIR)/debian/*.1

override_dh_auto_install:
	$(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/hcxdumptool
	for binary in $(CURDIR)/debian/hcxdumptool/usr/bin/* ; do \
		manpage=`basename $$binary`; \
		/usr/bin/help2man -n "hcx tools set"-N $$binary > $(CURDIR)/debian/$$manpage.1; \
		echo "Appended $$manpage from scratch";\
		echo debian/$$manpage.1 >> $(CURDIR)/debian/hcxdumptool.manpages; \
	done