blob: fe3a0c69ddb834b1a9b744e7ee36da36074467bf (
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
|
DOC_SRC = 19_NN_Compiler_and_Runtime_SRS.rst 19_NN_Compiler_and_Runtime_SDD.rst
DOC_PDF = $(DOC_SRC:.rst=.pdf)
all: pdf_docs
pdf_docs: $(DOC_PDF)
%.pdf.cover: %.rst.cover pdf.style pdf_cover.tmpl
rst2pdf --inline-footnotes -b 1 -s pdf.style --custom-cover pdf_cover.tmpl $< -o $@
%.pdf.main: %.rst pdf.style pdf_main.tmpl $(PU_IMG)
rst2pdf --inline-footnotes -b 1 -s pdf.style --custom-cover pdf_main.tmpl $< -o $@
%.pdf: %.pdf.cover %.pdf.main
pdftk A=$@.cover B=$@.main cat A1 B2-end output $@
mkdir -p ./pdf
mv $@ ./pdf
rm -f $@.cover $@.main
style.diff: pdf.style
rst2pdf --print-stylesheet > default.style
diff -Nuraw default.style $< > $@ || true
clean:
rm -f pdf rst
rm tree.txt default.style style.diff || true
.PHONY: all clean pdf_docs
.PRECIOUS: %.pdf.cover %.pdf.main
|