Imported Upstream version 1.0
[debian/p10cfgd] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian.rules file - for GNU Hello (1.3).
3 # Copyright 1994,1995 by Ian Jackson.
4 # I hereby give you perpetual unlimited permission to copy,
5 # modify and relicense this file, provided that you do not remove
6 # my name from the file itself.  (I assert my moral right of
7 # paternity under the Copyright, Designs and Patents Act 1988.)
8 # This file may have to be extensively modified
9
10 # There used to be `source' and `diff' targets in this file, and many
11 # packages also had `changes' and `dist' targets.  These functions
12 # have been taken over by dpkg-source, dpkg-genchanges and
13 # dpkg-buildpackage in a package-independent way, and so these targets
14 # are obsolete.
15
16 package=p10cfgd
17
18 build:
19         $(checkdir)
20         touch build
21
22 clean:
23         $(checkdir)
24         -rm -f build
25         -rm -rf *~ debian/tmp debian/*~ debian/files*
26
27 binary-indep:   checkroot build
28         $(checkdir)
29
30 binary-arch:    checkroot build
31         $(checkdir)
32         -rm -rf debian/tmp
33         install -d debian/tmp/usr/bin debian/tmp/usr/man/man1
34         install -g root -m 755 -o root p10cfgd debian/tmp/usr/bin/p10cfgd
35         install -g root -m 644 -o root p10cfgd \
36                 debian/tmp/usr/man/man1/p10cfgd.1
37         debstd $(package) CHANGES INSTALL README* TODO
38         dpkg-gencontrol
39         chown -R root.root debian/tmp
40         chmod -R g-ws debian/tmp
41         dpkg --build debian/tmp ..
42
43 define checkdir
44         test -f debian/rules
45 endef
46
47 # Below here is fairly generic really
48
49 binary:         binary-indep binary-arch
50
51 source diff:
52         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
53
54 checkroot:
55         $(checkdir)
56         test root = "`whoami`"
57
58 .PHONY: binary binary-arch binary-indep clean checkroot