###----- 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
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)
+
###--------------------------------------------------------------------------
### The manual.
## Main document styling and definitions.
TEX_FILES += sod.sty
+## The introduction.
+TEX_FILES += intro.tex
+
## Tutorial.
TEX_FILES += tutorial.tex
TEX_FILES += clang.tex
TEX_FILES += meta.tex
TEX_FILES += layout.tex
-##TEX_FILES += module.tex
+TEX_FILES += module.tex
TEX_FILES += output.tex
## Other hacks.
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
+ bibtex sod.aux
+ cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex
+ makeindex sod.idx
+ cd $(srcdir) && pdflatex $(TEXFLAGS) sod.tex
###----- That's all, folks --------------------------------------------------