diff options
| author | Frank Fischer <frank.fischer@mathematik.tu-chemnitz.de> | 2011-08-09 12:15:17 +0200 |
|---|---|---|
| committer | Frank Fischer <frank.fischer@mathematik.tu-chemnitz.de> | 2011-08-09 12:15:17 +0200 |
| commit | cc361f9577522edc007a494d1b622b9d5f1cd42b (patch) | |
| tree | 220f039f66578586bc0de7ba4afbadea69426278 /Makefile | |
| parent | 9a9fbc8a39ac46ad55cc06743fa69b90e26a866a (diff) | |
Add basic support for ELPA
Adds two make targets: The make-target 'version' can be used to change
the version string of the package 'make version VERSION=1.0.0', the
target 'elpa' creates the ELPA package ready for installation.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,6 +1,7 @@ SHELL = /bin/bash EMACS = emacs FILES = evil*.el +ELPAPKG = evil-`sed -n '3s/.*"\(.*\)".*/\1/p' evil-pkg.el` TAG = .PHONY: all compile compile-batch clean tests test emacs term terminal indent @@ -70,3 +71,17 @@ indent: clean (while (re-search-forward \"\\n\\\\{3,\\\\}\" nil t) \ (replace-match \"\\n\\n\")) \ (when (buffer-modified-p) (save-buffer 0))))" + +# Create an ELPA package +elpa: + rm -rf ${ELPAPKG} + mkdir ${ELPAPKG} + cp ${FILES} ${ELPAPKG} + rm ${ELPAPKG}/evil-tests.el + tar cf ${ELPAPKG}.tar ${ELPAPKG} + rm -rf ${ELPAPKG} + +# Change the version using make VERSION=x.y.z +version: + cat evil-pkg.el | sed "3s/\".*\"/\"${VERSION}\"/" > evil-pkg.el + |
