source: doc/user/Makefile @ 6be8514

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 6be8514 was 6b6597c, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

user manual updates, extend I/O test, fix memset in stdlib, workaround for fstream

  • Property mode set to 100644
File size: 2.0 KB
Line 
1## Define the appropriate configuration variables.
2
3TeXLIB = .:../bibliography/:../LaTeXmacros/:
4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex
5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
6
7## Define the text source files.
8
9SOURCES = ${addsuffix .tex, \
10user \
11}
12
13FIGURES = ${addsuffix .tex, \
14Cdecl \
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
46${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
47                ../LaTeXmacros/common.tex ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
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
57        makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
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.