File: rules

package info (click to toggle)
cvsweb 3%3A3.0.6-5
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 416 kB
  • ctags: 1
  • sloc: perl: 3,396; sh: 181; makefile: 38
file content (58 lines) | stat: -rwxr-xr-x 1,099 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpatch/dpatch.make

PACKAGE=cvsweb

build: patch-stamp build-stamp

build-stamp:
	dh_testdir
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp patch-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs -i NEWS
	dh_installdocs -i
	dh_installexamples -i
	dh_install -i
	# things, dh_install can't do:
	mv debian/$(PACKAGE)/usr/lib/cgi-bin/cvsweb.cgi \
		debian/$(PACKAGE)/usr/lib/cgi-bin/cvsweb
	chmod 755 debian/$(PACKAGE)/usr/lib/cgi-bin/cvsweb
	dh_installman -i
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_perl -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch: build install
	# We have nothing to do by default.

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install