X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/756f4928a8846058be6b0a26475851a5d6fece84..ed3ce6c2352d76442b79badfbe08bc6ecde6934d:/doc/Makefile.am diff --git a/doc/Makefile.am b/doc/Makefile.am index 4e1f5f3..5f090d8 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -7,7 +7,7 @@ ###----- Licensing notice --------------------------------------------------- ### -### This file is part of the Sensble Object Design, an object system for C. +### This file is part of the Sensible Object Design, an object system for C. ### ### SOD is free software; you can redistribute it and/or modify ### it under the terms of the GNU General Public License as published by @@ -28,9 +28,17 @@ include $(top_srcdir)/vars.am doc_DATA = TEX_FILES = -CLEANFILES += *.aux *.out *.log *.toc +CLEANFILES += *.aux *.out *.log *.toc *.ind *.idx *.ilg EXTRA_DIST += $(TEX_FILES) +TEXFLAGS = --interaction=nonstopmode \ + --output-directory=$(abs_builddir) + +run_pdflatex = cd $(srcdir) && \ + pdflatex $(TEXFLAGS) \ + --jobname=$(basename $1) \ + '\def\pkgversion{$(VERSION)}\input{$1}' + ###-------------------------------------------------------------------------- ### The manual. @@ -40,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 @@ -57,8 +68,8 @@ TEX_FILES += parsing.tex TEX_FILES += clang.tex TEX_FILES += meta.tex TEX_FILES += layout.tex -##TEX_FILES += module.tex -##TEX_FILES += ouptut.tex +TEX_FILES += module.tex +TEX_FILES += output.tex ## Other hacks. TEX_FILES += cutting-room-floor.tex @@ -68,7 +79,10 @@ 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 + $(call run_pdflatex,sod.tex) + bibtex sod.aux + $(call run_pdflatex,sod.tex) + makeindex sod.idx + $(call run_pdflatex,sod.tex) ###----- That's all, folks --------------------------------------------------