summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9b1a262a1493beac6a54862cdf0f43f8feebf1f1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.POSIX:
.PHONY: all doc clean
.SUFFIXES: .el .elc

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)