Commits

Joseph Wright committed 16a7aed

Add MakeIndex to doc run (fixes issue #81)

This also improves the Makefile so that auxiliary stuff is removed
after a run

Comments (0)

Files changed (2)

 	cp ./doc/Makefile $(BUILDDIR)/doc/
 	pushd $(BUILDDIR)/doc ; \
 	make all ; \
-	mv beameruserguide.pdf beameruserguide.pdf.xxx ; \
-	make clean ; \
-	mv beameruserguide.pdf.xxx beameruserguide.pdf ; \
 	popd
 	pushd $(TMPDIR) ; \
 	zip -ll -q -r -X beamer.zip . ; \
+AUXFILES = *.aux *.bbl *-blx.bib *.bcf *.blg *.fdb_latexmk *.idx *.ilg *.ind *.log *mpgraph.mp *.nav *.out *.snm *.synctex.gz *.tmp *.toc *.tui *.tuc *.tuo *.vrb *~
+
 rerun = "(There were undefined references|Rerun to get (cross-references|the bars) right)"
 doc   = beameruserguide
 
  beamerugcolorthemealbatrossstylish.pdf \
  $(innerthemes:%=beameruginnertheme%.pdf) \
  $(outerthemes:%=beamerugoutertheme%.pdf) 
-	pdflatex $(doc).tex
-	(egrep -q $(rerun) $(doc).log && pdflatex $(doc).tex) || true
+	pdflatex $(doc) ; \
+	if [ $$? = 0 ] ; then  \
+	  makeindex $(doc) ; \
+	  pdflatex $(doc) ; \
+	  makeindex $(doc) ; \
+	  pdflatex $(doc) ; \
+	else \
+	  echo "  Compilation failed" ; \
+	fi ; \
+	rm -f $(AUXFILES)
+
 
 beamerugtheme%.pdf: beamerthemeexample.tex beamerthemeexamplebase.tex ../base/themes/theme/beamertheme%.sty
 	pdflatex \\def\\themename{$(@:beamerugtheme%.pdf=%)}\\input beamerthemeexample.tex;
 	mv beamerouterthemeexample.pdf $@
 
 clean:
-	rm -f *.aux *.bbl *-blx.bib *.bcf *.blg *.fdb_latexmk *.idx *.ilg *.ind *.log *mpgraph.mp *.nav *.out *.snm *.synctex.gz *.tmp *.toc *.tui *.tuc *.tuo *.vrb *~ beamerug*.pdf
+	rm -f $(AUXFILES) beamerug*.pdf
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.