File: rules

package info (click to toggle)
crip 3.7-3%2Betch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 200 kB
  • ctags: 10
  • sloc: perl: 2,030; sh: 289; makefile: 35
file content (42 lines) | stat: -rwxr-xr-x 1,206 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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

include /usr/share/dpatch/dpatch.make

build: build-stamp
build-stamp: patch-stamp
	dh_testdir
	pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" debian/crip.pod debian/crip.1
	pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" debian/editcomment.pod debian/editcomment.1
	pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" debian/editfilenames.pod debian/editfilenames.1
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean debian/crip.1 debian/editcomment.1 debian/editfilenames.1

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs usr/bin
	cp crip editcomment editfilenames $(CURDIR)/debian/crip/usr/bin

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs Changelog
	dh_installdocs README TODO
	dh_installman debian/crip.1 debian/editcomment.1 debian/editfilenames.1
	dh_installexamples criprc_example
	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch