Permalink
Browse files

Makefile: Add INSTALL argument to sandbox target (#4665)

e.g. run "make sandbox INSTALL=helm" to make the sandbox and
automatically install the "helm" package.  This saves the user from
having to wait for package-initialize to finish, manually run
package-install, and type in the package name.
  • Loading branch information...
alphapapa authored and purcell committed Mar 29, 2017
1 parent beb91b4 commit 4b770e41ef7fc60241698cb3a83b6e9c8c399178
Showing with 7 additions and 4 deletions.
  1. +4 −3 CONTRIBUTING.md
  2. +3 −1 Makefile
@@ -112,11 +112,12 @@ packages will be available for installation along with those already
in MELPA:
```
EMACS_COMMAND=/path/to/emacs make sandbox
EMACS_COMMAND=/path/to/emacs make sandbox INSTALL=package-name
```
then `M-x package-list-packages`, install and test as
appropriate. This is a useful way to discover missing dependencies!
where `package-name` is the name of the package you want to install
into the sandbox, then install and test as appropriate. This is a
useful way to discover missing dependencies!
## Submitting
@@ -109,7 +109,9 @@ sandbox: packages/archive-contents
--eval "(add-to-list 'package-archives '(\"melpa\" . \"https://melpa.org/packages/\") t)" \
--eval "(add-to-list 'package-archives '(\"sandbox\" . \"$(shell pwd)/$(PKGDIR)/\") t)" \
--eval "(package-refresh-contents)" \
--eval "(package-initialize)"
--eval "(package-initialize)" \
--eval '(setq sandbox-install-package "$(INSTALL)")' \
--eval "(unless (string= \"\" sandbox-install-package) (package-install (intern sandbox-install-package)))"
.PHONY: clean build index html json sandbox
.FORCE:

0 comments on commit 4b770e4

Please sign in to comment.