branch: elpa/nix-mode
commit ccb320ab31664f0f289413a89d6aed24b266f666
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Make sure update .elc is available when running tests
otherwise we get out of date .elc files
---
Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index c111c1f3ce..3f3b0c24f1 100644
--- a/Makefile
+++ b/Makefile
@@ -6,15 +6,16 @@ ELS = nix.el nix-company.el nix-drv-mode.el nix-format.el \
nix-shell.el nix-store.el
ELCS = $(ELS:.el=.elc)
+TESTS = tests/nix-mode-tests.el tests/nix-font-lock-tests.el
+
DESTDIR =
PREFIX = /usr
all: $(ELCS) nix-mode.info nix-mode.html AUTHORS.md
-check:
+check: $(TESTS) $(ELCS)
emacs -batch -L . \
- -l tests/nix-mode-tests.el \
- -l tests/nix-font-lock-tests.el \
+ $(foreach test,$(TESTS),-l $(test)) \
-f ert-run-tests-batch-and-exit
install: $(ELCS) nix-mode.info nix-mode.html AUTHORS.md