source: doc/refrat/Makefile@ 83e680d

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new stuck-waitfor-destruct with_gc
Last change on this file since 83e680d was 83e680d, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

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

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[f60d997]1## Define the appropriate configuration variables.
2
[9724df0]3TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/:
[fea90c6]4LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
[e55ca05]5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
[f60d997]6
7## Define the text source files.
8
[a188b16]9SOURCES = ${addsuffix .tex, \
[f60d997]10refrat \
[83e680d]11keywords \
[f60d997]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 :
[20e409e]35 rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
[ce6c57c]36 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
[f60d997]37
38# File Dependencies #
39
40${DOCUMENT} : ${basename ${DOCUMENT}}.ps
41 ps2pdf $<
42
43${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
44 dvips $< -o $@
45
[e55ca05]46${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
[83e9bd3]47 ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
[ce6c57c]48 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
[05f0d98]49 if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
[ce6c57c]50 # Must have *.aux file containing citations for bibtex
[f60d997]51 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
52 -${BibTeX} ${basename $@}
[ce6c57c]53 # Some citations reference others so run steps again to resolve these citations
[f60d997]54 ${LaTeX} ${basename $@}.tex
55 -${BibTeX} ${basename $@}
[ce6c57c]56 # Make index from *.aux entries and input index at end of document
[e55ca05]57 makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
[ce6c57c]58 ${LaTeX} ${basename $@}.tex
59 # Run again to get index title into table of contents
60 ${LaTeX} ${basename $@}.tex
[f60d997]61
[20e409e]62predefined :
63 sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
64
[f60d997]65## Define the default recipes.
66
67%.tex : %.fig
68 fig2dev -L eepic $< > $@
69
70%.ps : %.fig
71 fig2dev -L ps $< > $@
72
[83e9bd3]73%.pstex : %.fig
74 fig2dev -L pstex $< > $@
75 fig2dev -L pstex_t -p $@ $< > $@_t
76
[f60d997]77# Local Variables: #
78# compile-command: "make" #
79# End: #
Note: See TracBrowser for help on using the repository browser.