source: doc/theses/aaron_moss/comp_II/Makefile @ 0a89a8f

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 0a89a8f was 23c27039, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

further harmonize document Makefile and documents

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[23c27039]1## Define the configuration variables.
[0b1376f]2
[23c27039]3Build = build
4Figures = figures
5Macros = ../../../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../../../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
[0b1376f]8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
[23c27039]10MAKEFLAGS = --no-print-directory --silent #
11VPATH = ${Build} ${Figures}
12
[0b1376f]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
[23c27039]37.PHONY : all clean                                      # not file names
38
[0b1376f]39all : ${DOCUMENT}
40
41clean :
[23c27039]42        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
[0b1376f]43
44# File Dependencies #
45
46${DOCUMENT} : ${basename ${DOCUMENT}}.ps
47        ps2pdf $<
48
49${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
[23c27039]50        dvips ${Build}/$< -o $@
[0b1376f]51
[23c27039]52${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
53                ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib
[0b1376f]54        # Must have *.aux file containing citations for bibtex
55        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
[23c27039]56        -${BibTeX} ${Build}/${basename $@}
57        # Some citations reference others so run again to resolve these citations
[0b1376f]58        ${LaTeX} ${basename $@}.tex
[23c27039]59        -${BibTeX} ${Build}/${basename $@}
60        # Run again to finish citations
[0b1376f]61        ${LaTeX} ${basename $@}.tex
62
63## Define the default recipes.
64
[23c27039]65${Build}:
66        mkdir -p ${Build}
67
[0b1376f]68%.tex : %.fig
[23c27039]69        fig2dev -L eepic $< > ${Build}/$@
[0b1376f]70
71%.ps : %.fig
[23c27039]72        fig2dev -L ps $< > ${Build}/$@
[0b1376f]73
74%.pstex : %.fig
[23c27039]75        fig2dev -L pstex $< > ${Build}/$@
76        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
[0b1376f]77
78# Local Variables: #
79# compile-command: "make" #
80# End: #
Note: See TracBrowser for help on using the repository browser.