From 736863e830b8feeae20425c73b2285da9162f662 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sun, 14 Sep 2008 19:02:31 -0700 Subject: Makefile: Add targets for making releases and uploading them. --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Makefile b/Makefile index 89eb807..c27c6e2 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,16 @@ SITELISP=$(PREFIX)/share/emacs/site-lisp/emms INSTALLINFO = /usr/sbin/install-info --info-dir=$(INFODIR) +# The currently released version of EMMS +VERSION=3.0 + .PHONY: all install lisp docs deb-install clean .PRECIOUS: %.elc all: lisp docs +autoloads: + $(MAKE) -C $(LISPDIR) emms-auto.el + lisp: $(MAKE) -C $(LISPDIR) @@ -48,3 +54,29 @@ ChangeLog: clean: -rm -f *~ $(DOCDIR)emms.info $(DOCDIR)emms.html emms-print-metadata $(MAKE) -C $(LISPDIR) clean + +dist: autoloads clean + git archive --format=tar --prefix=emms-$(VERSION)/ HEAD | \ + (cd .. && tar xf -) + rm -f ../emms-$(VERSION)/.gitignore + cp lisp/emms-autoloads.el ../emms-$(VERSION)/lisp + +release: dist + (cd .. && tar -czf emms-$(VERSION).tar.gz \ + emms-$(VERSION) ; \ + zip -r emms-$(VERSION).zip emms-$(VERSION) && \ + gpg --detach emms-$(VERSION).tar.gz && \ + gpg --detach emms-$(VERSION).zip) + +upload: + (cd .. && echo "Directory: emms" | gpg --clearsign > \ + emms-$(VERSION).tar.gz.directive.asc && \ + cp emms-$(VERSION).tar.gz.directive.asc \ + emms-$(VERSION).zip.directive.asc && \ + echo open ftp://ftp-upload.gnu.org > upload.lftp ; \ + echo cd /incoming/ftp >> upload.lftp ; \ + echo mput emms-$(VERSION).zip* >> upload.lftp ; \ + echo mput emms-$(VERSION).tar.gz* >> upload.lftp ; \ + echo close >> upload.lftp ; \ + lftp -f upload.lftp ; \ + rm -f upload.lftp) -- cgit v1.2.3