File: rules

package info (click to toggle)
jpylyzer 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,836 kB
  • sloc: xml: 161,036; python: 2,696; sh: 127; java: 56; makefile: 21
file content (29 lines) | stat: -rwxr-xr-x 839 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

include /usr/share/dpkg/default.mk

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

override_dh_install:
	pod2man --section=1 --release=$(DEB_VERSION_UPSTREAM) --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 jpylyzer.egg-info/
	dh_clean

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

override_dh_compress:
	dh_compress -X.pdf

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