| 1 |
.PHONY: all anchors outputs clean manpages |
| 2 |
|
| •3 |
|
| 4 |
PY = python |
| 5 |
XSLTPROC_OPTS := --stringparam toc.section.depth 2 --stringparam generate.section.toc.level 1 |
| 6 |
DBLATEX_OPTS := -P latex.output.revhistory=0 -P doc.collab.show=1 -P toc.section.depth=2 |
| 7 |
A2X_OPTS := -a toc -a icons -L -d article -v --xsltproc-opts "$(XSLTPROC_OPTS)" --dblatex-opts "$(DBLATEX_OPTS)" |
| 8 |
|
| 9 |
%.html: %.txt anchors outputs |
| •10 |
asciidoc -a data-uri -v -b html4 -d article -n -a toc2 -a icons $< |
| 11 |
|
| 12 |
|
| 13 |
%.pdf: %.txt anchors outputs |
| 14 |
- a2x -f pdf $(A2X_OPTS) $< |
| 15 |
|
| 16 |
|
| 17 |
%.epub: %.txt anchors outputs |
| 18 |
- a2x -f epub $(A2X_OPTS) $< |
| 19 |
|
| 20 |
all: guide.html guide.pdf guide.epub |
| 21 |
|
| 22 |
manpages: |
| •23 |
cd ../debian/man; ./create_manpage; |
| 24 |
cd ../debian/man; asciidoc -v -d manpage ./cxxtestgen.1.txt |
| 25 |
|
| 26 |
html: guide.html |
| 27 |
|
| 28 |
pdf: guide.pdf |
| 29 |
|
| 30 |
epub: guide.epub |
| 31 |
|
| 32 |
anchors: guide.txt |
| 33 |
$(PY) include_anchors.py $< |
| 34 |
|
| 35 |
outputs: |
| 36 |
../bin/cxxtestgen -h > examples/cxxtestgen.out |
| 37 |
|
| 38 |
clean: |
| 39 |
- \rm -f guide.xml |
| 40 |
- \rm -f examples/.*.py examples/.*.h examples/.*.cpp examples/.*.sh examples/runner examples/TEST*.xml examples/parsetab.py examples/*.orig examples/runner.cpp |