File: rules

package info (click to toggle)
info2www 1.2.2.9-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 128 kB
  • ctags: 16
  • sloc: perl: 880; makefile: 34; sh: 10
file content (45 lines) | stat: -rwxr-xr-x 1,221 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
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f

package=info2www

build:

binary: binary-arch binary-indep

binary-arch:

binary-indep: checkroot
	rm -rf debian/tmp
	install -d debian/tmp debian/tmp/DEBIAN
	install -d debian/tmp/usr/share/doc/$(package)
	install -d debian/tmp/usr/lib/cgi-bin
	install info2www debian/tmp/usr/lib/cgi-bin/
	install -m 0644 info2www.html next.gif prev.gif up.gif \
		        debian/tmp/usr/share/doc/$(package)/
	cp debian/copyright debian/tmp/usr/share/doc/$(package)/.
	cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
	install -m 0644 debian/infodoc.jpg.uue debian/tmp/usr/share/doc/$(package)/
	install -m 0644 debian/menu.gif.uue debian/tmp/usr/share/doc/$(package)/
	( cd debian/tmp/usr/share/doc/$(package) ; \
	uudecode infodoc.jpg.uue ; \
        uudecode menu.gif.uue ; \
	rm *.uue )
	cp README TODO debian/tmp/usr/share/doc/$(package)/
	gzip -9 debian/tmp/usr/share/doc/$(package)/changelog.Debian
	gzip -9 debian/tmp/usr/share/doc/$(package)/TODO

	dh_installdeb
	dh_md5sums

	dpkg-gencontrol
	chown -R root.root debian/tmp
	chmod -R o-s,go=u,go-ws debian/tmp
	dpkg --build debian/tmp ..

clean:
	rm -rf debian/tmp
	rm -f *~ debian/{*~,files*}

checkroot:
	test root = "`whoami`"