aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYann Hodique <yann.hodique@gmail.com>2011-12-23 23:15:55 +0100
committerYann Hodique <yann.hodique@gmail.com>2011-12-23 23:15:55 +0100
commit5f6097656190afe4969cdefadc1fc0c466986a48 (patch)
treefae523bd6658404e345aa46a7ff7741003aa696d /Makefile
parentc811d3a848374b3761a72505851ebed6f8e56557 (diff)
add elpa target1.1.0
generate an ELPA-compatible tarball
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4387ee0..18a9552 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ ELCS=$(ELS:.el=.elc)
ELCS_CONTRIB=$(ELS_CONTRIB:.el=.elc)
DIST_FILES=$(ELS) Makefile magit.texi magit.info README.md magit.spec.in magit-pkg.el.in 50magit.el
DIST_FILES_CONTRIB=$(ELS_CONTRIB) contrib/magit
+ELPA_FILES=$(ELS) magit.info magit-pkg.el
.PHONY=install
@@ -54,6 +55,15 @@ magit-$(VERSION).tar.gz: $(DIST_FILES) $(DIST_FILES_CONTRIB)
tar -cvzf magit-$(VERSION).tar.gz magit-$(VERSION)
rm -rf magit-$(VERSION)
+elpa: magit-$(VERSION).tar
+
+magit-$(VERSION).tar: $(ELPA_FILES)
+ mkdir magit-$(VERSION)
+ cp --preserve=timestamps $(ELPA_FILES) magit-$(VERSION)
+ sed -i -e "s/@GIT_DEV_VERSION@/$(VERSION)/" magit-$(VERSION)/magit.el #NO_DIST
+ tar -cvf magit-$(VERSION).tar magit-$(VERSION)
+ rm -rf magit-$(VERSION)
+
install: install_core install_docs
install_core: core