aboutsummaryrefslogtreecommitdiff
path: root/doc/GNUmakefile
blob: bf81053f4334c5f6baa8211f88befd1f68290607 (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
include ../consfigurator.mk

LISP = $(wildcard ../src/property/*.lisp ../src/util/*.lisp) \
	../src/connection.lisp ../src/property.lisp ../src/propspec.lisp \
	../src/host.lisp ../src/combinator.lisp ../src/deployment.lisp \
	../src/data.lisp ../src/image.lisp ../src/util.lisp
PAGES = $(patsubst ../src/%,%,$(LISP:lisp=rst))

.PHONY: all
all: html info

.PHONY: html info
html info: $(PAGES) conf.py $(wildcard *.rst */*.rst)
	sphinx-build -M $@ . _build

reader.rst:

$(PAGES) &: $(wildcard *.rst.in */*.rst.in) $(LISP)
	$(SBCL) --eval "(mapc #'consfigurator::build-manual-rst \
		              uiop:*command-line-arguments*)" --quit $(PAGES)

.PHONY: clean
clean:
	rm -rf _build
	rm -f $(PAGES)

# property.lisp contains the definition of BUILD-MANUAL-RST.
.SECONDEXPANSION:
%.rst: $$(wildcard $$*.rst.in) ../src/$$(*D)/$$(*F).lisp ../src/property.lisp
	$(SBCL) --eval '(consfigurator::build-manual-rst "$@")' --quit