File: rules

package info (click to toggle)
gfapy 1.0.0+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,928 kB
  • sloc: python: 11,549; sh: 167; makefile: 66
file content (33 lines) | stat: -rwxr-xr-x 684 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
26
27
28
29
30
31
32
33
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
export PYBUILD_NAME=gfapy

include /usr/share/dpkg/default.mk

export LC_ALL=C.UTF-8
DATE=$(shell date --date=@$(SOURCE_DATE_EPOCH) '+%d %B %Y')

MANPAGES=debian/man/gfapy-convert.1 \
		 debian/man/gfapy-mergelinear.1 \
		 debian/man/gfapy-validate.1

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

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	rm -rf debian/man/*.1
	dh_auto_clean --

override_dh_installman: $(MANPAGES)
	dh_installman

override_dh_auto_test:
	# pass