File: rules

package info (click to toggle)
dpmb 0~2019.03.01
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,060 kB
  • sloc: makefile: 75; xml: 74; perl: 28; sh: 6
file content (24 lines) | stat: -rwxr-xr-x 686 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
#!/usr/bin/make -f

P=$(shell dh_listpackages)

%:
	dh $@ --parallel

override_dh_auto_build:
	dh_auto_build -- allinone.html pdf epub mobi

override_dh_auto_install:
	# Install all images manually for now.
	for i in `find . '(' '(' -name deploy -o -name debian ')' -prune -o -name '*.png' ')' -type f`; do \
	    mkdir -pv `dirname "debian/tmp/usr/share/doc/$(P)/$$i"`; \
	    cp -pv "$$i" "debian/tmp/usr/share/doc/$(P)/$$i"; \
	done

override_dh_compress:
	dh_compress -X.pdf -X.mobi

# Don't run epubcheck during build to avoid tons of additional
# build-dependencies. Build-profiles would be an option, but are only
# supported from Debian 8 Jessie onwards.
override_dh_auto_test: