File: rules

package info (click to toggle)
pdf2htmlex 0.12%2Bds-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 972 kB
  • ctags: 854
  • sloc: cpp: 6,215; ansic: 406; python: 287; sh: 33; makefile: 12
file content (26 lines) | stat: -rwxr-xr-x 749 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
#!/usr/bin/make -f

# we set $HOME to a non-existing directory because the testsuite runs
# pdf2htmlEX which creates ~/.FontForge/ and we do not want to clutter
# the users home directory during a build
export HOME=$(CURDIR)/nonexistent

%:
	dh $@

# using ENABLE_SVG requires CairoFontEngine, CairoRescaleBox and
# CairoOutputDev from poppler sources
#override_dh_auto_configure:
#	dh_auto_configure -- -DENABLE_SVG=ON

override_dh_auto_build:
	dh_auto_build
	cd logo && ./update_png.sh

override_dh_auto_test:
	ln -s /usr/share/javascript/pdf/compatibility.js share/compatibility.js
	dh_auto_test

override_dh_auto_install:
	dh_auto_install
	ln -s /usr/share/javascript/pdf/compatibility.js debian/pdf2htmlex/usr/share/pdf2htmlEX/compatibility.js