summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8f8cd924091dc7ea2d31cb1c1bfb34e0d3f6c241 (plain)
  1. MONKEYSPHERE_VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
  2. all: keytrans
  3. keytrans:
  4. $(MAKE) -C src/keytrans
  5. tarball: 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: tarball
  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 tarball debian-package