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

  • Participants
  • Parent commits 9ec014d

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 . ; \

File doc/Makefile

+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