Skip to content

Commit 7306ad6

Browse files
author
Sam Kleinman
committed
build: tweaking output of pdflatex to prevent error
1 parent e85b0bc commit 7306ad6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ $(branch-output)/singlehtml/contents.html:$(branch-output)/singlehtml
182182
# Building and Linking the ePub and LaTeX Builds.
183183
#
184184
$(branch-output)/latex/MongoDB.tex:latex
185-
$(branch-output)/latex/MongoDB.pdf:$(branch-output)/latex/MongoDB-Manual.tex
185+
$(branch-output)/latex/MongoDB.pdf:$(branch-output)/latex/MongoDB.tex
186186
$(branch-output)/latex/MongoDB-Manual.tex:$(branch-output)/latex/MongoDB.tex
187187
@$(PYTHONBIN) bin/copy-if-needed.py -i $< -o $@ -b pdf
188188
$(branch-output)/latex/MongoDB-Manual.pdf:$(branch-output)/latex/MongoDB-Manual.tex
@@ -210,10 +210,10 @@ $(public-branch-output)/single:$(branch-output)/singlehtml
210210
@mkdir -p $@
211211
@cp -R $</* $@
212212
@rm -f $@/contents.html
213-
@echo [SINGLE]: migrated singlehtml files '$@'
213+
@echo [single]: migrated singlehtml files '$@'
214214
$(public-branch-output)/single/search.html:$(branch-output)/dirhtml/search/index.html
215215
@cp $< $@
216-
@echo [SINGLE]: migrated search page '$@'
216+
@echo [single]: migrated search page '$@'
217217
$(public-branch-output)/single/index.html:$(branch-output)/singlehtml/contents.html
218218
@cp $< $@
219219
@sed $(SED_ARGS_FILE) -e 's/href="contents.html/href="index.html/g' \
@@ -444,7 +444,7 @@ doctest:
444444
latex:
445445
@echo [latex]: starting TeX file generation at `date`.
446446
@mkdir -p $(branch-output)/latex
447-
@echo [test]: created $(branch-output)/latex
447+
@echo [latex]: created $(branch-output)/latex
448448
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(branch-output)/latex
449449
@echo [latex]: TeX file generated at `date`.
450450
latexpdf:latex
@@ -463,15 +463,16 @@ PDFLATEXCOMMAND = TEXINPUTS=".:$(branch-output)/latex/:" pdflatex --interaction
463463

464464
%.pdf:%.tex
465465
@echo [pdf]: pdf compilation started at `date`.
466-
@$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<' >|$@.log
466+
@touch $(basename $@)-pdflatex.log
467+
@$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<' >> $(basename $@)-pdflatex.log
467468
@echo [pdf]: \(1/4\) pdflatex $<
468-
@-makeindex -s $(branch-output)/latex/python.ist '$(basename $<).idx' >>$@.log 2>&1
469+
@-makeindex -s $(branch-output)/latex/python.ist '$(basename $<).idx' >> $(basename $@)-pdflatex.log 2>&1
469470
@echo [pdf]: \(2/4\) Indexing: $(basename $<).idx
470-
@$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<' >>$@.log
471+
@$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<' >> $(basename $@)-pdflatex.log
471472
@echo [pdf]: \(3/4\) pdflatex $<
472-
@$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<' >>$@.log
473+
@$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<' >> $(basename $@)-pdflatex.log
473474
@echo [pdf]: \(4/4\) pdflatex $<
474-
@echo [pdf]: see '$@.log' for a full report of the pdf build process.
475+
@echo [pdf]: see '$(basename $@)-pdflatex.log' for a full report of the pdf build process.
475476
@echo [pdf]: pdf compilation complete at `date`.
476477

477478
##########################################################################

0 commit comments

Comments
 (0)