forked from sourcedelica/manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (20 loc) · 1.16 KB
/
Makefile
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
SOURCES=Actors.tex Brokers.tex CommonPitfalls.tex ConfiguringActorApplications.tex Error.tex FAQ.tex FirstSteps.tex GroupCommunication.tex Introduction.tex ManagingGroupsOfWorkers.tex MessageHandlers.tex MessagePassing.tex Messages.tex MigrationGuides.tex NetworkTransparency.tex ReferenceCounting.tex Registry.tex Scheduler.tex UsingAout.tex Utility.tex TypeInspection.tex RemoteSpawn.tex
RST_FILES=$(SOURCES:.tex=.rst)
# prevent make from building something without target
none:
manual.pdf: $(SOURCES) variables.tex
pdflatex manual
pdflatex manual
pdflatex manual
pdf: manual.pdf
index.rst: manual.tex make_index_rst.py index_header.rst index_footer.rst
cat manual.tex | ./make_index_rst.py > $@
%.rst: %.tex variables.tex newcommands.tex explode_lstinputlisting.py filter.py
cat colors.tex variables.tex newcommands.tex $< | ./explode_lstinputlisting.py | pandoc --filter=./filter.py --wrap=none --listings -f latex -o $@
rst : $(RST_FILES) index.rst
sphinx: conf.py rst
sphinx-build -b html . html
all: pdf html sphinx
clean:
rm -rf *.htoc *.haux manual.html manual.pdf *.aux *.log $(RST_FILES) html/ _build _static _templates
.PHONY: none all pdf html rst clean