diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -6,15 +6,21 @@ EMACS = emacs ORG := doc/gnosis.org TEXI := doc/gnosis.texi INFO := doc/gnosis.info - +TEST_FILE := gnosis-test.el all: doc doc: $(ORG) $(EMACS) --batch \ + -Q \ --load org \ --eval "(with-current-buffer (find-file \"$(ORG)\") (org-texinfo-export-to-texinfo) (org-texinfo-export-to-info) (save-buffer))" \ --kill +test: + $(EMACS) --batch \ + --load $(TEST_FILE) \ + --eval "(ert-run-tests-batch-and-exit)" + clean: rm -f $(TEXI) $(INFO) |