File: rules

package info (click to toggle)
pen 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 612 kB
  • ctags: 278
  • sloc: ansic: 3,331; sh: 3,183; makefile: 42
file content (35 lines) | stat: -rwxr-xr-x 781 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
32
33
34
35
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

build: patch build-stamp
build-stamp:
	dh build --before configure
	dh_auto_configure -- --with-docdir=/usr/share/doc/pen
	dh build --after configure
	touch build-stamp

clean: clean-patched unpatch
clean-patched:
	rm -f build-stamp
	dh clean

install: build
	dh install --before docs
	# Remove useless doc files
	rm debian/pen/usr/share/doc/pen/COPYING
	rm debian/pen/usr/share/doc/pen/ChangeLog
	rm debian/pen/usr/share/doc/pen/AUTHORS
	# Fix manual pages for hyphen problems
	sed -i 's/\B-/\\-/g' debian/pen/usr/share/man/man1/*
	dh install --before compress
	dh_compress -Xpenctl.cgi
	dh install --remaining

binary-arch: install
	dh binary-arch

binary-indep: install
	dh binary-indep

binary: binary-arch binary-indep