source: doc/user/Makefile @ 3f5a28b

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

remove backported enumitem and listings macros, update Makefile

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