Add compile and test targets to phony list
This commit is contained in:
parent
d36bebec90
commit
0cf2ba7d1e
8
Makefile
8
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 $<"
|
||||
|
|
Loading…
Reference in New Issue