Skip to content

Commit 571f945

Browse files
committed
Added 'elpa-install' target.
Makes it easier to install the elpa package from the tar package during development.
1 parent e4d2170 commit 571f945

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all
1+
.PHONY: all elpa-package elpa-install
22

33
VERSION=0.1.0
44

@@ -13,3 +13,10 @@ README: README.md
1313
# create a tar ball in package.el format for uploading to http://marmalade-repo.org
1414
elpa-package: README drupal-mode.el drupal-mode-pkg.el drupal-mode.info dir
1515
tar -c -s "@^@drupal-mode-${VERSION}/@" -f drupal-mode-${VERSION}.tar $^
16+
17+
elpa-install: elpa-package
18+
emacs --batch --eval "(progn \
19+
(require 'package)\
20+
(add-to-list 'package-archives '(\"marmalade\" . \"http://marmalade-repo.org/packages/\"))\
21+
(package-initialize)\
22+
(package-install-file \"`pwd`/drupal-mode-${VERSION}.tar\"))"

0 commit comments

Comments
 (0)