source: doc/theses/aaron_moss/comp_II/Makefile @ 23c27039

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 23c27039 was 23c27039, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

further harmonize document Makefile and documents

  • Property mode set to 100644
File size: 1.8 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, \
16comp_II \
17}
18
19FIGURES = ${addsuffix .tex, \
20}
21
22PICTURES = ${addsuffix .pstex, \
23}
24
25PROGRAMS = ${addsuffix .tex, \
26}
27
28GRAPHS = ${addsuffix .tex, \
29}
30
31## Define the documents that need to be made.
32
33DOCUMENT = comp_II.pdf
34
35# Directives #
36
37.PHONY : all clean                                      # not file names
38
39all : ${DOCUMENT}
40
41clean :
42        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
43
44# File Dependencies #
45
46${DOCUMENT} : ${basename ${DOCUMENT}}.ps
47        ps2pdf $<
48
49${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
50        dvips ${Build}/$< -o $@
51
52${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
53                ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib
54        # Must have *.aux file containing citations for bibtex
55        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
56        -${BibTeX} ${Build}/${basename $@}
57        # Some citations reference others so run again to resolve these citations
58        ${LaTeX} ${basename $@}.tex
59        -${BibTeX} ${Build}/${basename $@}
60        # Run again to finish citations
61        ${LaTeX} ${basename $@}.tex
62
63## Define the default recipes.
64
65${Build}:
66        mkdir -p ${Build}
67
68%.tex : %.fig
69        fig2dev -L eepic $< > ${Build}/$@
70
71%.ps : %.fig
72        fig2dev -L ps $< > ${Build}/$@
73
74%.pstex : %.fig
75        fig2dev -L pstex $< > ${Build}/$@
76        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
77
78# Local Variables: #
79# compile-command: "make" #
80# End: #
Note: See TracBrowser for help on using the repository browser.