emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 322/352: Add Makefile to the repository


From: Stefan Monnier
Subject: [elpa] 322/352: Add Makefile to the repository
Date: Mon, 07 Jul 2014 14:05:26 +0000

monnier pushed a commit to branch master
in repository elpa.

commit fae8c0d9c1bf7448b114f38016e6fa5aa2587726
Author: Teemu Likonen <address@hidden>
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 -- address@hidden $@
+
+tag:
+       git tag -s $(VERSION) -m 'Version $(VERSION)' HEAD
+
+clean:
+       rm -f -- $(PKG) *.sig *.tar README
+
+.PHONY: elpa sign tag clean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]