source: doc/user/Makefile @ af4903b

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

missing Makefile

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