source: doc/refrat/Makefile@ b826e6b

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 with_gc
Last change on this file since b826e6b was 83e9bd3, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

formatting updates

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