source: doc/user/Makefile @ 3edc2df

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 3edc2df 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
RevLine 
[038726d]1## Define the appropriate configuration variables.
2
[3f5a28b]3TeXLIB = .:../LaTeXmacros:../bibliography/:
[554a0db]4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
[e55ca05]5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
[038726d]6
7## Define the text source files.
8
9SOURCES = ${addsuffix .tex, \
10user \
[af4903b]11../refrat/keywords \
[92c0f81]12../refrat/operidents \
[038726d]13}
14
15FIGURES = ${addsuffix .tex, \
[fbefc4d]16EHMHierarchy \
[6b6597c]17Cdecl \
[4096de0]18pointer1 \
[038726d]19}
20
21PICTURES = ${addsuffix .pstex, \
[4096de0]22pointer2 \
[038726d]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
[e55ca05]51${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
[218aecf]52                ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
[038726d]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
[e55ca05]62        makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
[038726d]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
[4096de0]78%.pstex : %.fig
79        fig2dev -L pstex $< > $@
80        fig2dev -L pstex_t -p $@ $< > $@_t
81
[038726d]82# Local Variables: #
83# compile-command: "make" #
84# End: #
Note: See TracBrowser for help on using the repository browser.