2
# debian.rules file - for xzip (2.4)
3
# Based on sample debian.rules file (copyright 1994,1995 by Ian Jackson).
5
# I hereby give you perpetual unlimited permission to copy,
6
# modify and relicense this file, provided that you do not remove
7
# my name from the file itself. (I assert my moral right of
8
# paternity under the Copyright, Designs and Patents Act 1988.)
21
-rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars
23
binary-indep: checkroot build
25
# There are no architecture-independent files to be uploaded
26
# generated by this package. If there were any they would be
29
binary-arch: checkroot build
32
# First create directories
33
install -d debian/tmp debian/tmp/DEBIAN
34
install -d debian/tmp/usr/share/doc/$(package)
35
install -d debian/tmp/usr/games
36
install -d debian/tmp/usr/share/man/man6
38
cp debian/copyright debian/tmp/usr/share/doc/$(package)
39
cp debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
40
gzip -9v debian/tmp/usr/share/doc/$(package)/changelog.Debian
41
install -m 0644 README debian/tmp/usr/share/doc/$(package)
43
install -s xzip debian/tmp/usr/games
44
install -m 0644 xzip.1 debian/tmp/usr/share/man/man6/xzip.6
45
gzip -9v debian/tmp/usr/share/man/man6/xzip.6
46
# Various bits and pieces needed to build package
47
cp debian/{postinst,prerm} debian/tmp/DEBIAN/.
48
chmod +x debian/tmp/DEBIAN/{postinst,prerm}
49
dpkg-shlibdeps debian/tmp/usr/games/xzip
51
chown -R root.root debian/tmp
52
chmod -R g-ws debian/tmp
53
dpkg --build debian/tmp ..
56
test -f zip.c -a -f debian/rules
59
# Below here is fairly generic really
61
binary: binary-indep binary-arch
64
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
68
test root = "`whoami`"
70
.PHONY: binary binary-arch binary-indep clean checkroot
3
include /usr/share/cdbs/1/rules/debhelper.mk
4
include /usr/share/cdbs/1/class/makefile.mk
5
include /usr/share/cdbs/1/rules/simple-patchsys.mk
7
DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR)