source: doc/user/Makefile @ 86f384b

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 86f384b was fbefc4d, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

reorganize material, small rewrites, introduce exceptions

  • Property mode set to 100644
File size: 2.2 KB
Line 
1## Define the appropriate configuration variables.
2
3TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/:
4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
6
7## Define the text source files.
8
9SOURCES = ${addsuffix .tex, \
10user \
11}
12
13FIGURES = ${addsuffix .tex, \
14EHMHierarchy \
15Cdecl \
16pointer1 \
17}
18
19PICTURES = ${addsuffix .pstex, \
20pointer2 \
21}
22
23PROGRAMS = ${addsuffix .tex, \
24}
25
26GRAPHS = ${addsuffix .tex, \
27}
28
29## Define the documents that need to be made.
30
31DOCUMENT = user.pdf
32
33# Directives #
34
35all : ${DOCUMENT}
36
37clean :
38        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
39                ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
40
41# File Dependencies #
42
43${DOCUMENT} : ${basename ${DOCUMENT}}.ps
44        ps2pdf $<
45
46${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
47        dvips $< -o $@
48
49${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
50                ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
51        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
52        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
53        # Must have *.aux file containing citations for bibtex
54        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
55        -${BibTeX} ${basename $@}
56        # Some citations reference others so run steps again to resolve these citations
57        ${LaTeX} ${basename $@}.tex
58        -${BibTeX} ${basename $@}
59        # Make index from *.aux entries and input index at end of document
60        makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
61        ${LaTeX} ${basename $@}.tex
62        # Run again to get index title into table of contents
63        ${LaTeX} ${basename $@}.tex
64
65predefined :
66        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
67
68## Define the default recipes.
69
70%.tex : %.fig
71        fig2dev -L eepic $< > $@
72
73%.ps : %.fig
74        fig2dev -L ps $< > $@
75
76%.pstex : %.fig
77        fig2dev -L pstex $< > $@
78        fig2dev -L pstex_t -p $@ $< > $@_t
79
80# Local Variables: #
81# compile-command: "make" #
82# End: #
Note: See TracBrowser for help on using the repository browser.