]> git.sthu.org Git - pgp-tools.git/blob - debian/rules
Added quilt as a build-dependency.
[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
16 DESTDIR = $(CURDIR)/debian/signing-party
17 DESTDIR_BIN = $(DESTDIR)/usr/bin
18 DESTDIR_DOC = $(DESTDIR)/usr/share/doc/signing-party
19
20 configure: configure-stamp
21 configure-stamp:
22 dh_testdir
23 touch $@
24
25 build: build-stamp
26 build-stamp: $(QUILT_STAMPFN) configure-stamp
27 dh_testdir
28 $(MAKE)
29 touch $@
30
31 clean: unpatch
32 dh_testdir
33 dh_testroot
34 $(MAKE) clean
35 rm -f build-stamp configure-stamp
36 dh_clean
37
38 install: build
39 dh_testdir
40 dh_testroot
41 dh_clean -k
42 dh_installdirs
43 $(MAKE) install DESTDIR=$(DESTDIR)
44 $(INSTALL_PROGRAM) $(GPGDIR_DIR)/$(GPGDIR_PROG) $(DESTDIR_BIN)
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 $(INSTALL_DATA) $(GPGDIR_DIR)/ChangeLog $(DESTDIR_DOC)/changelog.gpgdir
54 $(INSTALL_DATA) $(GPGWRAP_DIR)/NEWS $(DESTDIR_DOC)/changelog.gpgwrap
55 # ignore errors with older debhelper versions
56 -dh_lintian
57
58 binary-indep: build install
59 dh_testdir
60 dh_testroot
61 dh_installdocs
62 dh_installmenu
63 dh_installcron
64 dh_installinfo
65 dh_installchangelogs
66 dh_perl
67 dh_strip
68 dh_compress
69 dh_fixperms
70 dh_installdeb
71 dh_shlibdeps
72 dh_gencontrol
73 dh_md5sums
74 dh_builddeb
75
76 # Build architecture-dependent files here.
77 binary-arch: build install
78
79 binary: binary-indep
80 .PHONY: build clean binary-indep binary-arch binary install configure