]> git.decadent.org.uk Git - dak.git/blob - tests/fixtures/packages/Makefile
Removal dep check only considers latest sources (Closes: #792578)
[dak.git] / tests / fixtures / packages / Makefile
1 export GNUPGHOME = $(CURDIR)/gpg
2 SHELL = /bin/bash
3
4 TAR = nonfree-package_0.1 package_0.1 package-built-using_0.1
5 PACKAGES = $(TAR) package_0.1-2 package_0.1-3
6
7 all: packages
8
9 tarballs: stamp-tarballs
10 stamp-tarballs:
11         set -e; for t in $(TAR); do \
12           if [ ! -f $$t.orig.tar.gz ]; then \
13             tar -czf $$t.orig.tar.gz --exclude=debian $${t/_/-}; \
14           fi; \
15         done
16         touch $@
17
18 packages: stamp-packages
19 stamp-packages: stamp-tarballs
20         set -e; for p in $(PACKAGES); do \
21           (cd $${p/_/-}; dpkg-buildpackage); \
22         done
23         touch $@
24
25 clean:
26         set -e; for p in $(PACKAGES); do \
27           make -C $${p/_/-} -f debian/rules clean; \
28         done
29         rm -f *.tar.gz *.dsc *.changes *.diff.gz *.deb
30         rm -f gpg/*~
31         rm -f stamp-*