source: doc/user/Makefile @ e8ccca3

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

share operator identifiers

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