File: rules

package info (click to toggle)
jpylyzer 1.17.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 6,656 kB
  • ctags: 298
  • sloc: xml: 106,593; python: 2,362; sh: 45; makefile: 28
file content (31 lines) | stat: -rwxr-xr-x 870 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
30
31
#!/usr/bin/make -f

%:
	dh $@ --with python2

VERSION=$(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d-)

override_dh_install:
	pod2man --section=1 --release=$(VERSION) --center "" debian/jpylyzer.pod > jpylyzer.1
	dh_install

override_dh_clean:
	dh_clean Makefile
	dh_clean jpylyzer.1
	dh_clean doc/jpylyzerUserManual.pdf
	dh_clean doc/jpylyzerUserManual.txt
	dh_clean

override_dh_auto_build:
	dh_auto_build
	(cd doc && pandoc -s --toc --toc-depth=2 -N --chapters --latex-engine=xelatex -o jpylyzerUserManual.pdf jpylyzerUserManual.md)
	(cd doc && pandoc -o jpylyzerUserManual.txt jpylyzerUserManual.md)

override_dh_compress:
	dh_compress -X.pdf

get-orig-source:
	uscan --verbose --force-download --rename

debian/jpylyzer.pod:
	wget -O debian/jpylyzer.pod https://raw.githubusercontent.com/openpreserve/jpylyzer/master/debian/jpylyzer.pod