diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -5,6 +5,7 @@ VERSION := $(shell sed -n '3s/.*"\(.*\)".*/\1/p' evil-pkg.el) ELPAPKG = evil-$(VERSION) PROFILER = TAG = +LIBS = -L lib ELCFILES = $(FILES:.el=.elc) @@ -25,12 +26,12 @@ compile: $(ELCFILES) -include .depend $(ELCFILES): %.elc: %.el - $(EMACS) --batch -Q -L . -L lib -f batch-byte-compile $< + $(EMACS) --batch -Q -L . $(LIBS) -f batch-byte-compile $< # Byte-compile all files in one batch. This is faster than # compiling each file in isolation, but also less stringent. compile-batch: clean - $(EMACS) --batch -Q -L . -L lib -f batch-byte-compile ${FILES} + $(EMACS) --batch -Q -L . $(LIBS) -f batch-byte-compile ${FILES} # Delete byte-compiled files etc. clean: @@ -44,36 +45,36 @@ clean: # make test TAG=repeat # This will only run tests pertaining to the repeat system. test: - $(EMACS) --batch -Q -L . -L lib -l evil-tests.el \ + $(EMACS) --batch -Q -L . $(LIBS) -l evil-tests.el \ --eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))" # Byte-compile Evil and run all tests. tests: compile-batch - $(EMACS) --batch -Q -L . -L lib -l evil-tests.el \ + $(EMACS) --batch -Q -L . $(LIBS) -l evil-tests.el \ --eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))" rm -f *.elc # Load Evil in a fresh instance of Emacs and run all tests. emacs: - $(EMACS) -Q -L . -L lib -l evil-tests.el --eval "(evil-mode 1)" \ + $(EMACS) -Q -L . $(LIBS) -l evil-tests.el --eval "(evil-mode 1)" \ --eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}) t)" & # Load Evil in a terminal Emacs and run all tests. term: terminal terminal: - $(EMACS) -nw -Q -L . -L lib -l evil-tests.el --eval "(evil-mode 1)" \ + $(EMACS) -nw -Q -L . $(LIBS) -l evil-tests.el --eval "(evil-mode 1)" \ --eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}) t)" # Run all tests with profiler. profiler: - $(EMACS) --batch -Q -L . -L lib -l evil-tests.el \ + $(EMACS) --batch -Q -L . $(LIBS) -l evil-tests.el \ --eval "(evil-tests-initialize '(${TAG}) (or '(${PROFILER}) t))" # Re-indent all Evil code. # Loads Evil into memory in order to indent macros properly. # Also removes trailing whitespace, tabs and extraneous blank lines. indent: clean - $(EMACS) --batch ${FILES} -Q -L . -L lib -l evil-tests.el \ + $(EMACS) --batch ${FILES} -Q -L . $(LIBS) -l evil-tests.el \ --eval "(dolist (buffer (reverse (buffer-list))) \ (when (buffer-file-name buffer) \ (set-buffer buffer) \ |
