File: rules

package info (click to toggle)
xringd 1.20-1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 164 kB
  • ctags: 107
  • sloc: ansic: 863; makefile: 71; sh: 29
file content (62 lines) | stat: -rwxr-xr-x 1,937 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#! /usr/bin/make -f
#
# To make the distributed dpkg archive, the ``Debianized'' source package
# and the context diff to the original package, type `./debian.rules dist'.
# Make sure that `debian.rules' is executable before the final distribution
# is made.
#
# Invoke each target with `./debian.rules <target>'.  All targets should be
# invoked with the package root as the current directory.

build:
	make 
	touch build

clean:
	-make clean
	rm -rf build debian/tmp debian/files*
	-find . -name '*~' | xargs rm -f

binary-indep:   checkroot build
        $(checkdir)

binary-arch:	checkroot build
	rm -rf debian/tmp
	#
	install -d debian/tmp/usr/sbin
	install -c -m 755 -s xringd debian/tmp/usr/sbin
	install -d debian/tmp/usr/man/man8
	install -c -m 644 xringd.8 debian/tmp/usr/man/man8
	gzip -f9 debian/tmp/usr/man/man8/*
	install -d debian/tmp/etc
	install -c -m 600 debian/xringd.conf debian/tmp/etc
	install -d debian/tmp/etc/init.d
	install -c -m 755 debian/xringd.rc debian/tmp/etc/init.d/xringd
	#
	install -d debian/tmp/usr/doc/xringd
	cp -a README CHANGES TODO debian/tmp/usr/doc/xringd
	cp -a debian/changelog debian/tmp/usr/doc/xringd/changelog.Debian
	chmod 644 debian/tmp/usr/doc/xringd/*
	gzip -9f debian/tmp/usr/doc/xringd/*
	ln -s CHANGES.gz debian/tmp/usr/doc/xringd/changelog.gz
	install -m 644 debian/copyright debian/tmp/usr/doc/xringd/copyright
	#
	install -d debian/tmp/DEBIAN
	install -m 644 debian/conffiles debian/tmp/DEBIAN/conffiles
	install -m 755 debian/postinst debian/tmp/DEBIAN/postinst
	install -m 755 debian/prerm debian/tmp/DEBIAN/prerm
	install -m 755 debian/postrm debian/tmp/DEBIAN/postrm
	dpkg-shlibdeps debian/tmp/usr/sbin/xringd
	dpkg-gencontrol
	#
	chmod -R g-w debian/tmp
	chown -R root.root debian/tmp
	dpkg --build debian/tmp
	dpkg-name -o -s .. debian/tmp.deb

binary: binary-indep binary-arch

checkroot:
	test root = "`whoami`"

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