File: rules

package info (click to toggle)
xhtml2pdf 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,896 kB
  • sloc: python: 10,074; makefile: 242; xml: 24
file content (29 lines) | stat: -rwxr-xr-x 737 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
#!/usr/bin/make -f

# uncomment for verbose output
#export DH_VERBOSE=1

XP=xsltproc --nonet --novalid
DB2MAN=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

export PYBUILD_NAME=xhtml2pdf

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

override_dh_installman:
	# build the manpage
	$(XP) $(DB2MAN) debian/xhtml2pdf.dbk
	cp xhtml2pdf.1 xhtml2pdf3.1
	dh_installman

override_dh_auto_install:
	dh_auto_install
	# /usr/bin/xhtml2pdf and /usr/bin/pisa are the same thing,
	# let's only install the one, that is documented
	rm debian/python3-xhtml2pdf/usr/bin/pisa
	mv debian/python3-xhtml2pdf/usr/bin/xhtml2pdf debian/python3-xhtml2pdf/usr/bin/xhtml2pdf3

override_dh_clean:
	-rm xhtml2pdf.1  xhtml2pdf3.1
	dh_clean