Skip to content

Commit e737870

Browse files
author
Sam Kleinman
committed
build: ignoring PDF errors and adding warning.
1 parent a44cfcb commit e737870

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,25 @@ pdflatex-command = TEXINPUTS=".:$(branch-output)/latex/:" pdflatex --interaction
137137

138138
# Uses 'latex' target to generate latex files.
139139
pdfs:$(subst .tex,.pdf,$(wildcard $(branch-output)/latex/*.tex))
140+
@echo [build]: ALL PDFLATEX BUILD ERRORS IGNORED.
140141
$(branch-output)/latex/%.tex:
141142
@sed $(SED_ARGS_FILE) -e $(LATEX_CORRECTION) -e $(LATEX_CORRECTION) -e $(LATEX_LINK_CORRECTION) $@
142143
@echo [latex]: fixing the Sphinx ouput of '$@'.
143144
%.pdf:%.tex
144145
@echo [pdf]: pdf compilation of $@, started at `date`.
145146
@touch $(basename $@)-pdflatex.log
146147
@-$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
147-
@echo [pdf]: \(1/4\) pdflatex $<
148+
@echo [pdf]: \(1/6\) pdflatex $<
149+
@-$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
150+
@echo [pdf]: \(2/6\) pdflatex $<
151+
@-$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
152+
@echo [pdf]: \(3/6\) pdflatex $<
148153
@-makeindex -s $(branch-output)/latex/python.ist '$(basename $<).idx' >> $(basename $@)-pdflatex.log 2>&1
149-
@echo [pdf]: \(2/4\) Indexing: $(basename $<).idx
150-
@$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
151-
@echo [pdf]: \(3/4\) pdflatex $<
152-
@$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
153-
@echo [pdf]: \(4/4\) pdflatex $<
154+
@echo [pdf]: \(4/6\) Indexing: $(basename $<).idx
155+
@-$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
156+
@echo [pdf]: \(5/6\) pdflatex $<
157+
@-$(pdflatex-command) '$<' >> $(basename $@)-pdflatex.log
158+
@echo [pdf]: \(6/6\) pdflatex $<
154159
@echo [pdf]: see '$(basename $@)-pdflatex.log' for a full report of the pdf build process.
155160
@echo [pdf]: pdf compilation of $@, complete at `date`.
156161

0 commit comments

Comments
 (0)