File: rules

package info (click to toggle)
biff 1%3A0.17.pre20000412-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, stretch, wheezy
  • size: 120 kB
  • ctags: 28
  • sloc: ansic: 298; makefile: 82; sh: 27
file content (62 lines) | stat: -rwxr-xr-x 1,880 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
59
60
61
62
#!/usr/bin/make -f
# debian.rules file for biff
# Copyright 2000 by Martin Mitchell.

package=biff
STRIP=strip

build:
	$(checkdir)
	./configure --installroot=`pwd`/debian/tmp
	make CFLAGS="-O2 -g -Wall"
	touch build

clean:
	$(checkdir)
	-rm -f build
	-make distclean
	-rm `find . -name "*~"`
	-rm -rf debian/tmp debian/files* debian/substvars core

binary-indep:	checkroot build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp
	install -d debian/tmp/usr/bin debian/tmp/usr/sbin debian/tmp/DEBIAN debian/tmp/usr/share/doc/biff debian/tmp/usr/share/man/man1 debian/tmp/usr/share/man/man8
	make MANDIR=/usr/share/man install
	install -m 0644 ChangeLog debian/tmp/usr/share/doc/biff
	cp debian/changelog debian/tmp/usr/share/doc/biff/changelog.Debian
	gzip -9v debian/tmp/usr/share/doc/biff/*
	( cd debian/tmp/usr/share/doc/biff && ln -s ChangeLog.gz changelog.gz )
	cp debian/copyright debian/tmp/usr/share/doc/biff
	cp debian/README.debian debian/tmp/usr/share/doc/biff
	gzip -9v debian/tmp/usr/share/man/man1/*
	rm debian/tmp/usr/share/man/man8/comsat.8
	gzip -9v debian/tmp/usr/share/man/man8/*
	( cd debian/tmp/usr/share/man/man8 && ln -s in.comsat.8.gz comsat.8.gz )
	$(STRIP) debian/tmp/usr/bin/biff debian/tmp/usr/sbin/in.comsat
	install -m 0755 debian/postinst debian/postrm debian/prerm debian/tmp/DEBIAN
	dpkg-shlibdeps debian/tmp/usr/bin/biff debian/tmp/usr/sbin/in.comsat
	dpkg-gencontrol -isp
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot