Add substpdf target
Akin to substhtml, so that we can build PDF documents without
overwriting the upstream-provided versions and causing debian/rules clean
to not return to the original state.
Ben Kaduk authored 11 years ago
Sam Hartman committed 10 years ago
84 | 84 | rm -f *.dvi *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla \ |
85 | 85 | ) |
86 | 86 | |
87 | substpdf: rst_composite | |
88 | $(SPHINX_BUILD) -t pathsubs -b latex -q rst_composite pdf_subst | |
89 | mv pdf_subst/Makefile pdf_subst/GMakefile | |
90 | (cd pdf_subst && \ | |
91 | for i in $(PDFDOCS); do \ | |
92 | texfile=`echo $${i}.tex` && \ | |
93 | idxfile=`echo $${i}.idx` && \ | |
94 | pdflatex $(LATEXOPTS) $$texfile && \ | |
95 | pdflatex $(LATEXOPTS) $$texfile && \ | |
96 | makeindex -s python.ist $$idxfile || true; \ | |
97 | pdflatex $(LATEXOPTS) $$texfile && \ | |
98 | pdflatex $(LATEXOPTS) $$texfile; done && \ | |
99 | rm -f *.dvi *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla \ | |
100 | ) | |
101 | ||
87 | 102 | # Use doxygen to generate API documentation, translate it into RST |
88 | 103 | # format, and then create a composite of $(docsrc)'s RST and the |
89 | 104 | # generated files in rst_composite. Used by the html and substhtml targets. |