diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9771ba8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +EMACS ?= emacs +ELFILES := perspective.el +ELCFILES = $(ELFILES:.el=.elc) + +all: test + +.PHONY: test +test: + $(EMACS) -nw -Q -batch -L . -l ert $(addprefix -l ,$(wildcard test/*.el)) \ + --eval "(ert-run-tests-batch-and-exit)" + +.PHONY: compile +compile: $(ELCFILES) + +$(ELCFILES): %.elc: %.el + $(EMACS) --batch -Q -L . -f batch-byte-compile $< |
