]> git.sthu.org Git - pgp-tools.git/blob - Makefile
for dh_lintian we need debhelper >= 6.0.4, so upgrade to 7 right away while
[pgp-tools.git] / Makefile
1 DIRS=caff gpg-key2ps gpg-mailkeys gpgsigs gpglist gpgparticipants keyanalyze keylookup \
2 sig2dot springgraph gpgwrap gpgdir
3 VERSION=$(shell dpkg-parsechangelog 2>&1 | perl -ne 'print $$1 if /^Version: ([^-]*)/')
4 DEBVERSION=$(shell dpkg-parsechangelog 2>&1 | perl -ne 'print $$1 if /^Version: (.*)/')
5 TGZ=../signing-party_$(VERSION).orig.tar.gz
6 TGZ_DIR=signing-party-$(VERSION)
7
8 all:
9 for dir in $(DIRS) ; do if [ -f $$dir/Makefile ] ; then $(MAKE) -C $$dir || exit 1 ; fi ; done
10
11 install:
12 for dir in $(DIRS) ; do if [ -f $$dir/Makefile ] ; then $(MAKE) -C $$dir install || exit 1 ; fi ; done
13
14 clean:
15 for dir in $(DIRS) ; do if [ -f $$dir/Makefile ] ; then $(MAKE) -C $$dir clean || exit 1 ; fi ; done
16
17 dist:
18 [ -d debian ] && fakeroot debian/rules clean
19 [ ! -f $(TGZ) ]
20 mkdir $(TGZ_DIR)
21 for dir in $(DIRS) ; do cp -a $$dir $(TGZ_DIR); done
22 cp -a README Makefile $(TGZ_DIR)
23 GZIP=--best tar cvz -f $(TGZ) --exclude .svn $(TGZ_DIR)
24 rm -rf $(TGZ_DIR)
25
26 tag-release:
27 if svn ls svn+ssh://svn.debian.org/svn/pgp-tools/tags/release-$(VERSION) >/dev/null 2>&1; then \
28 echo "Already exists." >&2; exit 1; \
29 fi
30 svn cp -m 'tagging release $(VERSION)' svn+ssh://svn.debian.org/svn/pgp-tools/trunk svn+ssh://svn.debian.org/svn/pgp-tools/tags/release-$(VERSION)
31
32 tag-debian-version:
33 if svn ls svn+ssh://svn.debian.org/svn/pgp-tools/tags/debian-version-$(DEBVERSION) >/dev/null 2>&1; then \
34 echo "Already exists." >&2; exit 1; \
35 fi
36 svn cp -m 'tagging debian version $(DEBVERSION)' svn+ssh://svn.debian.org/svn/pgp-tools/trunk svn+ssh://svn.debian.org/svn/pgp-tools/tags/debian-version-$(DEBVERSION)