source: doc/refrat/Makefile @ 83e680d

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

change to 11pt, add DRAFT watermark, share new keyword-list

  • Property mode set to 100644
File size: 2.1 KB
Line 
1## Define the appropriate configuration variables.
2
3TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../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, \
10refrat \
11keywords \
12}
13
14FIGURES = ${addsuffix .tex, \
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 = refrat.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/lstlang.sty ../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%.pstex : %.fig
74        fig2dev -L pstex $< > $@
75        fig2dev -L pstex_t -p $@ $< > $@_t
76
77# Local Variables: #
78# compile-command: "make" #
79# End: #
Note: See TracBrowser for help on using the repository browser.