From 0cf2ba7d1e3238ca2cf98c7333e3b1f916e53c96 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 21 Nov 2020 12:06:16 +0100 Subject: [PATCH] Add compile and test targets to phony list --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 $<"