monnier pushed a commit to branch master in repository elpa. commit fae8c0d9c1bf7448b114f38016e6fa5aa2587726 Author: Teemu Likonen <tliko...@iki.fi> Date: Sun Apr 14 21:15:49 2013 +0300
Add Makefile to the repository This can be used to create ELPA tar packages. --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e00e8d8 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# Makefile for wcheck-mode + +BASE := wcheck-mode +DESC := General interface for text checkers +VERSION := $(shell date +%Y.%-m.%-d) +MAIN := $(BASE).el +PKG := $(BASE)-pkg.el +FILES := $(MAIN) $(PKG) README COPYING +NAME := $(BASE)-$(VERSION) + +elpa: $(NAME).tar +sign: $(NAME).tar.sig + +$(NAME).tar: $(FILES) + tar --create --file $@ --transform 's,^,$(NAME)/,' $(FILES) + +$(NAME).tar.sig: $(NAME).tar + gpg --yes --detach-sign $< + +$(PKG): + @printf "(define-package \"%s\" \"%s\"\n \"%s\")\n" \ + "$(BASE)" "$(VERSION)" "$(DESC)" >$@ + @cat $@ + +README: README.org + emacs -Q --batch --file $< --funcall org-export-as-ascii + mv -f -- $@.txt $@ + +tag: + git tag -s $(VERSION) -m 'Version $(VERSION)' HEAD + +clean: + rm -f -- $(PKG) *.sig *.tar README + +.PHONY: elpa sign tag clean