diff --git a/Makefile b/Makefile index b3bbb43..dde8df7 100644 --- a/Makefile +++ b/Makefile @@ -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 $<"