source: doc/refrat/Makefile@ 8f6dfe7

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 8f6dfe7 was 92c0f81, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

share operator identifiers

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