source: doc/theses/andrew_beach_MMath/Makefile @ 7039ab9

arm-ehjacob/cs343-translationnew-ast-unique-expr
Last change on this file since 7039ab9 was 7039ab9, checked in by Peter A. Buhr <pabuhr@…>, 5 months ago

add xfig figures

  • Property mode set to 100644
File size: 1.4 KB
Line 
1### Makefile for Andrew Beach's Masters Thesis
2
3DOC = uw-ethesis.pdf
4BASE = ${DOC:%.pdf=%} # remove suffix
5# directory for latex clutter files
6BUILD = build
7TEXSRC = $(wildcard *.tex)
8FIGSRC = $(wildcard *.fig)
9BIBSRC = $(wildcard *.bib)
10STYSRC = $(wildcard *.sty)
11CLSSRC = $(wildcard *.cls)
12TEXLIB = .:../../LaTeXmacros:${BUILD}: # common latex macros
13BIBLIB = .:../../bibliography # common citation repository
14
15MAKEFLAGS = --no-print-directory # --silent
16VPATH = ${BUILD}
17
18### Special Rules:
19
20.PHONY: all clean deepclean
21.PRECIOUS: %.dvi %.ps # do not delete intermediate files
22
23### Commands:
24LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
25BIBTEX = BIBINPUTS=${BIBLIB} bibtex
26GLOSSARY = INDEXSTYLE=${BUILD} makeglossaries-lite
27
28### Rules and Recipes:
29
30all: ${DOC}
31
32${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:.fig=.tex} ${BIBSRC} ${STYSRC} ${CLSSRC} Makefile | ${BUILD}
33        ${LATEX} ${BASE}
34        ${BIBTEX} ${BUILD}/${BASE}
35        ${LATEX} ${BASE}
36        ${GLOSSARY} ${BUILD}/${BASE}
37        ${LATEX} ${BASE}
38
39${BUILD}:
40        mkdir $@
41
42%.pdf : ${BUILD}/%.ps | ${BUILD}
43        ps2pdf $<
44
45%.ps : %.dvi | ${BUILD}
46        dvips $< -o $@
47
48%.tex : %.fig | ${BUILD}
49        fig2dev -L eepic $< > ${BUILD}/$@
50
51%.ps : %.fig | ${BUILD}
52        fig2dev -L ps $< > ${BUILD}/$@
53
54%.pstex : %.fig | ${BUILD}
55        fig2dev -L pstex $< > ${BUILD}/$@
56        fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
57
58clean:
59        @rm -frv ${BUILD} *.fig.bak
60
61deepclean: clean
62        -@rm -fv ${DOC}
Note: See TracBrowser for help on using the repository browser.