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 63 64 65 66 67 68 69 70 71 72
|
#!/usr/bin/make -f
# debian/rules file - for gnupg-doc
# Based on sample debian/rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# Copyright 1998 James Troup
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself. (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
build:
$(checkdir)
for i in gph pgp2x; do for j in $$i/*; do make -C $$j debian-all; done; done
clean: checkroot
$(checkdir)
for i in gph pgp2x; do for j in $$i/*; do make -C $$j clean; done; done
-rm -rf debian/tmp debian/*~ debian/files* debian/substvars
binary-arch:
binary-indep: checkroot
$(checkdir)
-rm -rf debian/tmp
install -d debian/tmp/DEBIAN/
install -m 0755 debian/prerm debian/postinst debian/tmp/DEBIAN/
install -d debian/tmp/usr/share/doc/gnupg-doc/
for i in gph pgp2x; do \
target=$$i ; \
if [ $$i = "gph" ]; then \
target="GNU_Privacy_Handbook"; \
fi; \
install install -d -m 0755 debian/tmp/usr/share/doc/gnupg-doc/$$target; \
for j in $$i/*; do \
country=$$(basename $$j) ; \
if [ $$country = "en" ]; then country=""; else \
country="$$country"/; \
install -d -m 0755 debian/tmp/usr/share/doc/gnupg-doc/$$target/$$country; \
fi; \
make DESTDIR=$$(pwd)/debian/tmp/usr/share/doc/gnupg-doc/$$target/$$country -C $$j install; \
done; done
install -d -m 0755 debian/tmp/usr/share/doc/gnupg-doc/mini-HOWTO/
for i in mini_howto/*; do \
country=$$(basename $$i) ; \
if [ $$country = "en" ]; then \
install -m 644 $$i/* debian/tmp/usr/share/doc/gnupg-doc/mini-HOWTO/; \
else \
cp -a $$i debian/tmp/usr/share/doc/gnupg-doc/mini-HOWTO/; \
fi; \
done;
install -m 644 debian/changelog debian/tmp/usr/share/doc/gnupg-doc/changelog.Debian
find debian/tmp/usr/share/doc/gnupg-doc/ -type f ! -name \*.html | xargs gzip -9v
install -m 644 debian/copyright debian/tmp/usr/share/doc/gnupg-doc/
dpkg-gencontrol -isp
chown -R root.root debian/tmp
chmod -R go=rX debian/tmp
dpkg --build debian/tmp ..
define checkdir
test -f gph/en/manual.sgml -a -f debian/rules
endef
# Below here is fairly generic really
binary: binary-indep binary-arch
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|