source: doc/theses/andrew_beach_MMath/Makefile @ 1661ad7

Last change on this file since 1661ad7 was 432bffe, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

fix Makefile for .pstex files

  • Property mode set to 100644
File size: 1.3 KB
Line 
1### Makefile for Andrew Beach's Masters Thesis
2
3DOC=uw-ethesis.pdf
4BUILD=out
5TEXSRC=$(wildcard *.tex)
6FIGSRC=$(wildcard *.fig)
7BIBSRC=$(wildcard *.bib)
8STYSRC=$(wildcard *.sty)
9CLSSRC=$(wildcard *.cls)
10TEXLIB= .:../../LaTeXmacros:${BUILD}:
11BIBLIB= .:../../bibliography
12
13# Since tex programs like to add their own file extensions:
14BASE= ${DOC:%.pdf=%}
15
16RAWSRC=${TEXSRC} ${BIBSRC} ${STYSRC} ${CLSSRC}
17FIGTEX=${FIGSRC:%.fig=${BUILD}/%.tex}
18
19### Special Rules:
20
21.PHONY: all clean deepclean
22
23### Commands:
24LATEX=TEXINPUTS=${TEXLIB} latex -halt-on-error -output-directory=${BUILD}
25BIBTEX=BIBINPUTS=${BIBLIB} bibtex
26GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
27
28### Rules and Recipies:
29
30all: ${DOC}
31
32# The main rule, it does all the tex/latex processing.
33${BUILD}/${BASE}.dvi: ${RAWSRC} ${FIGTEX} termhandle.pstex resumhandle.pstex Makefile | ${BUILD}
34        ${LATEX} ${BASE}
35        ${BIBTEX} ${BUILD}/${BASE}
36        ${GLOSSARY} ${BUILD}/${BASE}
37        ${LATEX} ${BASE}
38
39# Convert xfig output to tex. (Generates \special declarations.)
40${FIGTEX}: ${BUILD}/%.tex: %.fig | ${BUILD}
41        fig2dev -L eepic $< > $@
42
43%.pstex : %.fig | ${Build}
44        fig2dev -L pstex $< > ${BUILD}/$@
45        fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
46
47# Step through dvi & postscript to handle xfig specials.
48%.pdf : ${BUILD}/%.dvi
49        dvipdf $^ $@
50
51${BUILD}:
52        mkdir $@
53
54clean:
55        -@rm -rv ${BUILD}
56
57deepclean: clean
58        -@rm -v ${DOC}
Note: See TracBrowser for help on using the repository browser.