From: Mark Wooding Date: Wed, 2 Aug 2017 09:55:51 +0000 (+0100) Subject: doc/Makefile.am: Abstract out repeated TeX arguments into a variable. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/7ad0d2505058d26e456a246fc4caf5a11d1f3589 doc/Makefile.am: Abstract out repeated TeX arguments into a variable. --- diff --git a/doc/Makefile.am b/doc/Makefile.am index c61002d..60661d5 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -31,6 +31,8 @@ TEX_FILES = CLEANFILES += *.aux *.out *.log *.toc *.ind *.idx *.ilg EXTRA_DIST += $(TEX_FILES) +TEXFLAGS = --output-directory=$(abs_builddir) + ###-------------------------------------------------------------------------- ### The manual. @@ -68,9 +70,9 @@ MAINTAINERCLEANFILES += sod.pdf EXTRA_DIST += sod.pdf doc_DATA += sod.pdf sod.pdf: $(TEX_FILES) - cd $(srcdir) && pdflatex --output-directory=$(abs_builddir) sod.tex - cd $(srcdir) && pdflatex --output-directory=$(abs_builddir) sod.tex + cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex + cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex makeindex sod.idx - cd $(srcdir) && pdflatex --output-directory=$(abs_builddir) sod.tex + cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex ###----- That's all, folks --------------------------------------------------