summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-26 06:31:06 +0300
committerThanos Apollo <[email protected]>2024-08-26 06:31:06 +0300
commit907308c45e8221fedb8c34596cd57497c2736c01 (patch)
tree486824e4803870a4fd39c079b3073ef8b5678666
parent4d90489c5bb573ff547723b8caeb0a2b6cf7eb50 (diff)
makefile: Add tests & use quick (-Q) option.
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ee28ad..9b1a262 100644
--- a/Makefile
+++ b/Makefile
@@ -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)