X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/7ad0d2505058d26e456a246fc4caf5a11d1f3589..6213be581b6fd4836c19af2f7970ecead5f8ae97:/doc/Makefile.am diff --git a/doc/Makefile.am b/doc/Makefile.am index 60661d5..5f090d8 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -31,7 +31,13 @@ TEX_FILES = CLEANFILES += *.aux *.out *.log *.toc *.ind *.idx *.ilg EXTRA_DIST += $(TEX_FILES) -TEXFLAGS = --output-directory=$(abs_builddir) +TEXFLAGS = --interaction=nonstopmode \ + --output-directory=$(abs_builddir) + +run_pdflatex = cd $(srcdir) && \ + pdflatex $(TEXFLAGS) \ + --jobname=$(basename $1) \ + '\def\pkgversion{$(VERSION)}\input{$1}' ###-------------------------------------------------------------------------- ### The manual. @@ -42,6 +48,9 @@ TEX_FILES += sod.tex ## Main document styling and definitions. TEX_FILES += sod.sty +## The introduction. +TEX_FILES += intro.tex + ## Tutorial. TEX_FILES += tutorial.tex @@ -70,9 +79,10 @@ MAINTAINERCLEANFILES += sod.pdf EXTRA_DIST += sod.pdf doc_DATA += sod.pdf sod.pdf: $(TEX_FILES) - cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex - cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex + $(call run_pdflatex,sod.tex) + bibtex sod.aux + $(call run_pdflatex,sod.tex) makeindex sod.idx - cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex + $(call run_pdflatex,sod.tex) ###----- That's all, folks --------------------------------------------------