File: rules

package info (click to toggle)
unpaper 6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 3,500 kB
  • ctags: 306
  • sloc: ansic: 3,339; sh: 1,260; makefile: 77
file content (28 lines) | stat: -rwxr-xr-x 769 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
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

override_dh_auto_build:
	dh_auto_build
	mkdir -p html/doc
	cd html/doc && ln -s ../../img img
# replace .md links with .html links
	markdown -o html/index.html README.md
	sed -i -e 's/\(a href="doc\/\)\([^"]\+\)\(.md">\)/\1\2.html">/' html/index.html
	for F in doc/*.md; do markdown -o html/doc/$$(basename -s .md $$F).html $$F;done

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_compress:
	cd debian/unpaper/usr/share/doc/unpaper && rm NEWS COPYING
	dh_compress

override_dh_clean:
	rm -rf html
	dh_clean

override_dh_auto_test:
# Don't run the tests. Upstream explains why they don't work here:
# https://blog.flameeyes.eu/2014/10/the-subtlety-of-modern-cpus-or-the-search-for-the-phantom-bug