2 # debian/rules file - for debian/keyring
3 # Based on sample debian/rules file - for GNU Hello (1.3).
4 # Copyright 1994,1995 by Ian Jackson.
5 # Copyright 1998-2003 James Troup
6 # I hereby give you perpetual unlimited permission to copy,
7 # modify and relicense this file, provided that you do not remove
8 # my name from the file itself. (I assert my moral right of
9 # paternity under the Copyright, Designs and Patents Act 1988.)
10 # This file may have to be extensively modified
12 install_dir=install -d -m 755
13 install_file=install -m 644
14 install_script=install -m 755
15 install_binary=install -m 755 -s
17 VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
23 -rm -f foo foo.asc *.bak *~ */*~ debian/files* debian/*substvars
26 binary-indep: checkroot
29 $(install_dir) debian/tmp/DEBIAN/
30 $(install_script) debian/postinst debian/tmp/DEBIAN/
31 $(install_script) debian/prerm debian/tmp/DEBIAN/
33 $(install_dir) debian/tmp/usr/share/keyrings/
34 $(install_file) keyrings/carnet-keyring.gpg debian/tmp/usr/share/keyrings/
35 $(install_file) keyrings/carnet-removed-keys.gpg debian/tmp/usr/share/keyrings/
37 $(install_dir) debian/tmp/usr/share/doc/carnet-keyring/
38 $(install_file) debian/changelog debian/tmp/usr/share/doc/carnet-keyring/changelog
41 dpkg-gencontrol -pcarnet-keyring -isp
42 chown -R root.root debian/tmp
43 chmod -R go=rX debian/tmp
44 dpkg --build debian/tmp ..
49 # test -f keyrings/carnet-keyring.gpg
50 # test -f keyrings/carnet-removed-keys.gpg
53 # Below here is fairly generic really
55 binary: binary-indep binary-arch
59 test root = "`whoami`"
61 .PHONY: binary binary-arch binary-indep clean checkroot