File: rules

package info (click to toggle)
pktanon 2~git20160407.0.2bde4f2+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,532 kB
  • sloc: cpp: 5,501; xml: 828; exp: 767; makefile: 118; ansic: 16; sh: 12
file content (29 lines) | stat: -rwxr-xr-x 621 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
24
25
26
27
28
29
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
UPSTREAM_VERSION=$(shell dpkg-parsechangelog -SVersion | cut -f1 -d-)
TIMESTAMP=$(shell dpkg-parsechangelog -STimestamp)
DATE=$(shell date --date=@$(TIMESTAMP) '+%d %B %Y')

MANPAGES=debian/man/pktanon.1

%.1: %.1.txt
	TZ=UTC LC_ALL=C \
	  txt2man -d "$(DATE)" \
	  -s 1 -r "pktanon $(UPSTREAM_VERSION)" \
	  -t $(shell basename -a -s.1 $@) \
	  $< > $@

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(MANPAGES)

override_dh_installman: $(MANPAGES)
	dh_installman

override_dh_auto_install:
	dh_auto_install
	rm -rfv debian/pktanon/usr/lib