source: doc/theses/andrew_beach_MMath/Makefile @ df24d37

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since df24d37 was 6a8208cb, checked in by Andrew Beach <ajbeach@…>, 3 years ago

Andrew MMath: Changed driver: pdflatex to latex.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[5a3d67c]1### Makefile for Andrew Beach's Masters Thesis
2
[de47a9d]3DOC=uw-ethesis.pdf
4BUILD=out
5TEXSRC=$(wildcard *.tex)
[6a8208cb]6FIGSRC=$(wildcard *.fig)
[de47a9d]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=%}
[5a3d67c]15
[6a8208cb]16RAWSRC=${TEXSRC} ${BIBSRC} ${STYSRC} ${CLSSRC}
17FIGTEX=${FIGSRC:%.fig=${BUILD}/%.tex}
18
[5a3d67c]19### Special Rules:
20
21.PHONY: all clean deepclean
22
23### Commands:
[6a8208cb]24LATEX=TEXINPUTS=${TEXLIB} latex -halt-on-error -output-directory=${BUILD}
[de47a9d]25BIBTEX=BIBINPUTS=${BIBLIB} bibtex
26GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
[5a3d67c]27
[de47a9d]28### Rules and Recipies:
[5a3d67c]29
30all: ${DOC}
31
[6a8208cb]32# The main rule, it does all the tex/latex processing.
33${BUILD}/${BASE}.dvi: ${RAWSRC} ${FIGTEX} Makefile | ${BUILD}
[5a3d67c]34        ${LATEX} ${BASE}
35        ${BIBTEX} ${BUILD}/${BASE}
[f28fdee]36        ${LATEX} ${BASE}
[5a3d67c]37        ${GLOSSARY} ${BUILD}/${BASE}
38        ${LATEX} ${BASE}
39
[6a8208cb]40# Convert xfig output to tex. (Generates \special declarations.)
41${FIGTEX}: ${BUILD}/%.tex: %.fig | ${BUILD}
42        fig2dev -L eepic $< > $@
43
44# Step through dvi & postscript to handle xfig specials.
45%.pdf : ${BUILD}/%.dvi
46        dvipdf $^ $@
[de47a9d]47
[5a3d67c]48${BUILD}:
49        mkdir $@
50
51clean:
[de47a9d]52        -@rm -rv ${BUILD}
[5a3d67c]53
54deepclean: clean
[de47a9d]55        -@rm -v ${DOC}
Note: See TracBrowser for help on using the repository browser.