summaryrefslogtreecommitdiff
path: root/Makefile
blob: aaf9d651e14bc4d44f91d9f58ee68b8eceab8334 (plain)
  1. MONKEYSPHERE_VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
  2. all: keytrans
  3. keytrans:
  4. $(MAKE) -C src/keytrans
  5. release: clean
  6. rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
  7. mkdir -p monkeysphere-$(MONKEYSPHERE_VERSION)/doc
  8. ln -s ../../doc/README ../../doc/README.admin ../../doc/TODO ../../doc/MonkeySpec monkeysphere-$(MONKEYSPHERE_VERSION)/doc
  9. ln -s ../COPYING ../etc ../Makefile ../man ../src monkeysphere-$(MONKEYSPHERE_VERSION)
  10. tar -ch monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
  11. rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
  12. debian-package: release
  13. tar xzf monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
  14. cp -a debian monkeysphere-$(MONKEYSPHERE_VERSION)
  15. (cd monkeysphere-$(MONKEYSPHERE_VERSION) && debuild -uc -us)
  16. rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
  17. clean:
  18. $(MAKE) -C src/keytrans clean
  19. # clean up old monkeysphere packages lying around as well.
  20. rm -f monkeysphere_*
  21. .PHONY: all clean release debian-package