summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1e0b649efe0e9e72ee6f5ec892e06b4006bfe05a (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 ../../website/getting-started-user.mdwn ../../website/getting-started-admin.mdwn ../../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