Codebase list krb5 / 9a7b9bb
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
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8484 rm -f *.dvi *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla \
8585 )
8686
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
87102 # Use doxygen to generate API documentation, translate it into RST
88103 # format, and then create a composite of $(docsrc)'s RST and the
89104 # generated files in rst_composite. Used by the html and substhtml targets.