diff mbox

Show errors when generating libstdc++ API PDF

Message ID 20150630142218.GB2856@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely June 30, 2015, 2:22 p.m. UTC
This makes it a bit easier to determine why 'make doc-pdf-doxygen'
failed, for the common case where it's a missing TeX package.

Tested x86_64-linux, committed to trunk.
diff mbox

Patch

commit 432831cb555b79d686f3c8bdd115d5386d9d6301
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Jun 30 13:48:19 2015 +0100

    	* doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
    	* doc/Makefile.in: Regenerate.

diff --git a/libstdc++-v3/doc/Makefile.am b/libstdc++-v3/doc/Makefile.am
index d6ea2d1..d63cf17 100644
--- a/libstdc++-v3/doc/Makefile.am
+++ b/libstdc++-v3/doc/Makefile.am
@@ -257,6 +257,7 @@  stamp-latex-doxygen: ${doxygen_outdir}/latex
 # include asking a wizard to enlarge capacity. If this is the case,
 # find texmf.cnf and add a zero for pool_size, string_vacancies,
 # max_strings, and pool_free values.
+# Errors like "File `foo.sty' not found" mean a TeX package is missing.
 stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
 	-(cd ${doxygen_outdir}/latex && $(MAKE) -i pdf;)
 	echo "Generating doxygen pdf file...";
@@ -265,6 +266,7 @@  stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
 	  echo ":: PDF file is ${api_pdf}"; \
 	else \
 	  echo "... error"; \
+	  grep -F 'LaTeX Error' ${doxygen_outdir}/latex/refman.log; \
 	  exit 12; \
 	fi
 	$(STAMP) stamp-pdf-doxygen