branch: elpa/drupal-mode
commit 571f94535f6457c9245dd47a99bb2ee4ae4f2887
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Added 'elpa-install' target.
Makes it easier to install the elpa package from the tar package
during development.
---
Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 7105dad209..518fa7e3d5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all
+.PHONY: all elpa-package elpa-install
VERSION=0.1.0
@@ -13,3 +13,10 @@ README: README.md
# create a tar ball in package.el format for uploading to
http://marmalade-repo.org
elpa-package: README drupal-mode.el drupal-mode-pkg.el drupal-mode.info dir
tar -c -s "@^@drupal-mode-${VERSION}/@" -f drupal-mode-${VERSION}.tar $^
+
+elpa-install: elpa-package
+ emacs --batch --eval "(progn \
+ (require 'package)\
+ (add-to-list 'package-archives '(\"marmalade\" .
\"http://marmalade-repo.org/packages/\"))\
+ (package-initialize)\
+ (package-install-file \"`pwd`/drupal-mode-${VERSION}.tar\"))"