Skip to content

Commit ccb320a

Browse files
committed
Make sure update .elc is available when running tests
otherwise we get out of date .elc files
1 parent 1b2f22f commit ccb320a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ ELS = nix.el nix-company.el nix-drv-mode.el nix-format.el \
66
nix-shell.el nix-store.el
77
ELCS = $(ELS:.el=.elc)
88

9+
TESTS = tests/nix-mode-tests.el tests/nix-font-lock-tests.el
10+
911
DESTDIR =
1012
PREFIX = /usr
1113

1214
all: $(ELCS) nix-mode.info nix-mode.html AUTHORS.md
1315

14-
check:
16+
check: $(TESTS) $(ELCS)
1517
emacs -batch -L . \
16-
-l tests/nix-mode-tests.el \
17-
-l tests/nix-font-lock-tests.el \
18+
$(foreach test,$(TESTS),-l $(test)) \
1819
-f ert-run-tests-batch-and-exit
1920

2021
install: $(ELCS) nix-mode.info nix-mode.html AUTHORS.md

0 commit comments

Comments
 (0)