Add compile and test targets to phony list

This commit is contained in:
Daniel - 2020-11-21 12:06:16 +01:00
parent d36bebec90
commit 0cf2ba7d1e
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 4 additions and 4 deletions

View File

@ -9,16 +9,14 @@ TEST = $(wildcard site-lisp/*-test.el)
ELC = $(EL:.el=.elc)
TESTC = $(TEST:.el=.elc)
compile: $(ELC) $(TESTC)
.PHONY: compile test clean distclean sandbox-start
timelinetools-test.elc: timeline-tools.elc
compile: $(ELC) $(TESTC)
test: $(ELC) $(TESTC)
@echo "Testing $(TESTC)"
@$(EMACS) -Q --batch $(LDFLAGS) $(patsubst %,-l %, $(TESTC)) -f ert-run-tests-batch
.PHONY: clean distclean sandbox-start
clean:
rm -f $(ELC) $(TESTC)
@ -31,6 +29,8 @@ sandbox-start:
ln -s $(PWD) sandbox/.emacs.d
HOME=$(PWD)/sandbox emacs
timelinetools-test.elc: timeline-tools.elc
.SUFFIXES: .el .elc
.el.elc:
@echo "Compiling $<"