source: doc/refrat/Makefile @ bfee448

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since bfee448 was a188b16, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

work on index

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[f60d997]1## Define the appropriate configuration variables.
2
3TeXLIB = .::
4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex
5BibTeX = BSTINPUTS=${TeXLIB} && export BSTINPUTS && bibtex
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 :
[ce6c57c]34        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t \
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
[a188b16]45${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ${basename ${DOCUMENT}}.bib
[ce6c57c]46        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
[05f0d98]47        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
[ce6c57c]48        # Must have *.aux file containing citations for bibtex
[f60d997]49        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
50        -${BibTeX} ${basename $@}
[ce6c57c]51        # Some citations reference others so run steps again to resolve these citations
[f60d997]52        ${LaTeX} ${basename $@}.tex
53        -${BibTeX} ${basename $@}
[ce6c57c]54        # Make index from *.aux entries and input index at end of document
55        makeindex -s indexstyle ${basename $@}.idx
56        ${LaTeX} ${basename $@}.tex
57        # Run again to get index title into table of contents
58        ${LaTeX} ${basename $@}.tex
[f60d997]59
60## Define the default recipes.
61
62%.tex : %.fig
63        fig2dev -L eepic $< > $@
64
65%.ps : %.fig
66        fig2dev -L ps $< > $@
67
68# Local Variables: #
69# compile-command: "make" #
70# End: #
Note: See TracBrowser for help on using the repository browser.