]> git.sthu.org Git - pgp-tools.git/blob - debian/rules
prepare for upload
[pgp-tools.git] / debian / rules
1 #!/usr/bin/make -f
2
3 include /usr/share/quilt/quilt.make
4
5 VERSION := $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2)
6
7 INSTALL = install
8 INSTALL_PROGRAM = $(INSTALL)
9 INSTALL_DATA = $(INSTALL) -m 644
10
11 GPGDIR_DIR = gpgdir
12 GPGDIR_PROG = gpgdir
13
14 GPGWRAP_DIR = gpgwrap
15 GPGWRAP_PROG = bin/gpgwrap
16
17 DESTDIR = $(CURDIR)/debian/signing-party
18 DESTDIR_BIN = $(DESTDIR)/usr/bin
19 DESTDIR_DOC = $(DESTDIR)/usr/share/doc/signing-party
20
21 configure: configure-stamp
22 configure-stamp:
23 dh_testdir
24 touch $@
25
26 build: build-stamp
27 build-stamp: $(QUILT_STAMPFN) configure-stamp
28 dh_testdir
29 $(MAKE)
30 touch $@
31
32 clean: unpatch
33 dh_testdir
34 dh_testroot
35 $(MAKE) clean
36 rm -f build-stamp configure-stamp
37 dh_clean
38
39 install: build
40 dh_testdir
41 dh_testroot
42 dh_prep
43 dh_installdirs
44 $(MAKE) install DESTDIR=$(DESTDIR)
45 dh_install
46 dh_installman */*.1 */*/*.1
47 $(INSTALL_DATA) caff/README \
48 caff/README.gpg-agent \
49 caff/README.many-keys \
50 caff/README.v3-keys \
51 caff/caffrc.sample \
52 $(DESTDIR_DOC)/caff
53
54 $(INSTALL_PROGRAM) $(GPGDIR_DIR)/$(GPGDIR_PROG) $(DESTDIR_BIN)
55 $(INSTALL_DATA) $(GPGDIR_DIR)/ChangeLog $(DESTDIR_DOC)/changelog.gpgdir
56
57 $(INSTALL_PROGRAM) $(GPGWRAP_DIR)/$(GPGWRAP_PROG) $(DESTDIR_BIN)
58 $(INSTALL_DATA) $(GPGWRAP_DIR)/NEWS $(DESTDIR_DOC)/changelog.gpgwrap
59
60 dh_lintian
61
62 binary-indep: build install
63 binary-arch: build install
64 dh_testdir
65 dh_testroot
66 dh_installdocs
67 dh_installmenu
68 dh_installcron
69 dh_installinfo
70 dh_installchangelogs
71 dh_perl
72 dh_strip
73 dh_compress
74 dh_fixperms
75 dh_installdeb
76 dh_shlibdeps
77 dh_gencontrol
78 dh_md5sums
79 dh_builddeb
80
81 binary: binary-indep binary-arch
82
83 .PHONY: build clean binary-indep binary-arch binary install configure