summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3d7eae7dad6fba4ebbaf2eb2030c3131a24097d2 (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
27
28
29
30
31
32
33
34
35
36
.POSIX:
.PHONY: all doc clean test test-parsing test-db
.SUFFIXES: .el .elc

EMACS = emacs
ORG := doc/org-gnosis.org
TEXI := doc/org-gnosis.texi
INFO := doc/org-gnosis.info

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: test-parsing test-db

test-parsing:
	guix shell -m manifest.scm -- $(EMACS) --batch \
	--eval "(add-to-list 'load-path \".\")" \
	-l ert \
	-l tests/org-gnosis-test-parsing.el \
	-f ert-run-tests-batch-and-exit

test-db:
	guix shell -m manifest.scm -- $(EMACS) --batch \
	--eval "(add-to-list 'load-path \".\")" \
	-l ert \
	-l tests/org-gnosis-test-db.el \
	-f ert-run-tests-batch-and-exit

clean:
	rm -f $(TEXI) $(INFO) *pkg* *autoloads*