source: doc/refrat/Makefile @ 2ebcb28

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 2ebcb28 was 484ee53, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

update Makefiles so ${Build} is order only

  • Property mode set to 100644
File size: 2.3 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = figures
5Macros = ../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
10MAKEFLAGS = --no-print-directory --silent #
11VPATH = ${Build} ${Figures}
12
13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16refrat \
17keywords \
18operidents \
19}
20
21FIGURES = ${addsuffix .tex, \
22}
23
24PICTURES = ${addsuffix .pstex, \
25}
26
27PROGRAMS = ${addsuffix .tex, \
28}
29
30GRAPHS = ${addsuffix .tex, \
31}
32
33## Define the documents that need to be made.
34
35DOCUMENT = refrat.pdf
36BASE = ${basename ${DOCUMENT}}
37
38# Directives #
39
40.PHONY : all clean                                      # not file names
41
42all : ${DOCUMENT}
43
44clean :
45        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
46
47# File Dependencies #
48
49${DOCUMENT} : ${BASE}.ps
50        ps2pdf $<
51
52${BASE}.ps : ${BASE}.dvi
53        dvips ${Build}/$< -o $@
54
55${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
56                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib | ${Build}
57        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
58        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
59        # Must have *.aux file containing citations for bibtex
60        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
61        -${BibTeX} ${Build}/${basename $@}
62        # Some citations reference others so run again to resolve these citations
63        ${LaTeX} ${basename $@}.tex
64        -${BibTeX} ${Build}/${basename $@}
65        # Make index from *.aux entries and input index at end of document
66        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
67        # Run again to finish citations
68        ${LaTeX} ${basename $@}.tex
69        # Run again to get index title into table of contents
70        ${LaTeX} ${basename $@}.tex
71
72predefined :
73        sed -f predefined.sed ${BASE}.tex > ${basename $@}.cf
74
75## Define the default recipes.
76
77${Build}:
78        mkdir -p ${Build}
79
80%.tex : %.fig | ${Build}
81        fig2dev -L eepic $< > ${Build}/$@
82
83%.ps : %.fig | ${Build}
84        fig2dev -L ps $< > ${Build}/$@
85
86%.pstex : %.fig | ${Build}
87        fig2dev -L pstex $< > ${Build}/$@
88        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
89
90# Local Variables: #
91# compile-command: "make" #
92# End: #
Note: See TracBrowser for help on using the repository browser.