source: doc/refrat/Makefile @ c8ad5d9

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since c8ad5d9 was 23c27039, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

further harmonize document Makefile and documents

  • 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
36
37# Directives #
38
39.PHONY : all clean                                      # not file names
40
41all : ${DOCUMENT}
42
43clean :
44        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
45
46# File Dependencies #
47
48${DOCUMENT} : ${basename ${DOCUMENT}}.ps
49        ps2pdf $<
50
51${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
52        dvips ${Build}/$< -o $@
53
54${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
55                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib
56        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
57        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
58        # Must have *.aux file containing citations for bibtex
59        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
60        -${BibTeX} ${Build}/${basename $@}
61        # Some citations reference others so run again to resolve these citations
62        ${LaTeX} ${basename $@}.tex
63        -${BibTeX} ${Build}/${basename $@}
64        # Make index from *.aux entries and input index at end of document
65        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
66        # Run again to finish citations
67        ${LaTeX} ${basename $@}.tex
68        # Run again to get index title into table of contents
69        ${LaTeX} ${basename $@}.tex
70
71predefined :
72        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
73
74## Define the default recipes.
75
76${Build}:
77        mkdir -p ${Build}
78
79%.tex : %.fig
80        fig2dev -L eepic $< > ${Build}/$@
81
82%.ps : %.fig
83        fig2dev -L ps $< > ${Build}/$@
84
85%.pstex : %.fig
86        fig2dev -L pstex $< > ${Build}/$@
87        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
88
89# Local Variables: #
90# compile-command: "make" #
91# End: #
Note: See TracBrowser for help on using the repository browser.