File: rules

package info (click to toggle)
hcxtools 6.2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,348 kB
  • sloc: ansic: 22,732; python: 145; makefile: 106; sh: 82
file content (22 lines) | stat: -rwxr-xr-x 670 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -pie
export DEB_CFLAGS_MAINT_APPEND = -fPIE

%:
	dh $@

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

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