From 732cbfd6e2db6aa9de5bf69689a1af0e95c12a07 Mon Sep 17 00:00:00 2001 From: Teemu Likonen Date: Sun, 14 Apr 2013 16:42:56 +0300 Subject: [PATCH] =?UTF-8?q?Lis=C3=A4t=C3=A4=C3=A4n=20Makefile,=20jolla=20v?= =?UTF-8?q?oi=20mm.=20tehd=C3=A4=20tar-paketteja?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2cc29b5 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# Makefile for suomalainen-kalenteri + +BASE := suomalainen-kalenteri +DESC := Finnish national and Christian holidays for calendar +VERSION := $(shell date +%Y.%-m.%-d) +MAIN := $(BASE).el +PKG := $(BASE)-pkg.el +LOADER := loader.el +FILES := $(MAIN) $(PKG) $(LOADER) README.org +NAME := $(BASE)-$(VERSION) + +elpa: $(PKG) $(LOADER) + tar --create --file $(NAME).tar --transform 's,^,$(NAME)/,' $(FILES) + gpg --yes --detach-sign $(NAME).tar + +$(PKG): + @printf '(define-package "%s" "%s"\n "%s" nil)\n' \ + "$(BASE)" "$(VERSION)" "$(DESC)" >$@ + @cat $@ + +$(LOADER): + @printf ";;;###autoload\n(eval-after-load 'calendar\n" >$@ + @printf " '(load \"$(MAIN)\" t t))\n" >>$@ + @cat $@ + +tag: + git tag -s $(VERSION) -m 'Version $(VERSION)' HEAD + +clean: + rm -f -- $(PKG) *.sig *.tar $(LOADER) + +.PHONY: elpa tag clean