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
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
25 -rm -rf *~ debian/tmp debian/*~ debian/files*
27 binary-indep: checkroot build
30 binary-arch: checkroot build
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
39 chown -R root.root debian/tmp
40 chmod -R g-ws debian/tmp
41 dpkg --build debian/tmp ..
47 # Below here is fairly generic really
49 binary: binary-indep binary-arch
52 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
56 test root = "`whoami`"
58 .PHONY: binary binary-arch binary-indep clean checkroot