source: doc/user/Makefile @ 9724df0

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 9724df0 was 9724df0, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

update latex macros, and user and refrat manuals

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