Skip to content

Commit c1e6c23

Browse files
committed
Update makefile
1 parent a74af09 commit c1e6c23

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ LOAD = -l gnuplot \
1010

1111
default: compile
1212

13-
test:
14-
$(EMACS) -batch -L . $(LOAD) -f ert-run-tests-batch-and-exit
13+
prepare:
14+
$(EMACS) --eval "(progn (package-refresh-contents) (package-install 'compat))"
1515

16-
compile:
17-
$(EMACS) -batch -L . -f batch-byte-compile gnuplot-*.el
16+
test: prepare
17+
$(EMACS) --batch -L . -f package-initialize $(LOAD) -f ert-run-tests-batch-and-exit
18+
19+
compile: prepare
20+
$(EMACS) --batch -L . -f package-initialize -f batch-byte-compile gnuplot-*.el
1821

1922
clean:
2023
rm -f *.elc

0 commit comments

Comments
 (0)