Makefile 701 B

1234567891011121314151617181920212223242526272829303132
  1. export GNUPGHOME = $(CURDIR)/gpg
  2. SHELL = /bin/bash
  3. TAR = nonfree-package_0.1 package_0.1 package-built-using_0.1
  4. PACKAGES = $(TAR) package_0.1-2 package_0.1-3
  5. all: packages
  6. tarballs: stamp-tarballs
  7. stamp-tarballs:
  8. set -e; for t in $(TAR); do \
  9. if [ ! -f $$t.orig.tar.gz ]; then \
  10. tar -czf $$t.orig.tar.gz --exclude=debian $${t/_/-}; \
  11. fi; \
  12. done
  13. touch $@
  14. packages: stamp-packages
  15. stamp-packages: stamp-tarballs
  16. set -e; for p in $(PACKAGES); do \
  17. (cd $${p/_/-}; dpkg-buildpackage); \
  18. done
  19. touch $@
  20. clean:
  21. set -e; for p in $(PACKAGES); do \
  22. make -C $${p/_/-} -f debian/rules clean; \
  23. done
  24. rm -f *.tar.gz *.dsc *.changes *.diff.gz *.deb
  25. rm -f gpg/*~
  26. rm -f stamp-*