source: doc/refrat/Makefile @ f60d997

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglergc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newstringwith_gc
Last change on this file since f60d997 was f60d997, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

refrat initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
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
9SOURCE = ${addsuffix .tex, \
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 :
34        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
35
36# File Dependencies #
37
38${DOCUMENT} : ${basename ${DOCUMENT}}.ps
39        ps2pdf $<
40
41${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
42        dvips $< -o $@
43
44${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCE} refrat.bbl ${basename ${DOCUMENT}}.tex ${basename ${DOCUMENT}}.idx ${basename ${DOCUMENT}}.bbl
45        ${LaTeX} ${basename $@}.tex
46        if fgrep -s "Label(s) may have changed" ${basename $@}.log ; then ${LaTeX} ${basename $@}.tex ; fi
47        makeindex -s indexstyle ${basename $@}.idx
48        ${LaTeX} ${basename $@}.tex
49        ${LaTeX} ${basename $@}.tex             % to get index title in toc
50
51${basename ${DOCUMENT}}.idx : %.idx : %.tex
52        if [ ! -r ${basename $@}.ind ] ; then cp /dev/null ${basename $@}.ind ; fi
53
54${basename ${DOCUMENT}}.bbl :
55        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
56        -${BibTeX} ${basename $@}
57        ${LaTeX} ${basename $@}.tex
58        -${BibTeX} ${basename $@}
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.