ADT
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since a953c2e3 was edc6ea2, checked in by Andrew Beach <ajbeach@…>, 4 years ago |
Andrew MMath: LaTeX clean-up. Went through existing to make some of the examples more managable.
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[5a3d67c] | 1 | ### Makefile for Andrew Beach's Masters Thesis
|
---|
| 2 |
|
---|
[de47a9d] | 3 | DOC=uw-ethesis.pdf
|
---|
| 4 | BUILD=out
|
---|
| 5 | TEXSRC=$(wildcard *.tex)
|
---|
[6a8208cb] | 6 | FIGSRC=$(wildcard *.fig)
|
---|
[de47a9d] | 7 | BIBSRC=$(wildcard *.bib)
|
---|
| 8 | STYSRC=$(wildcard *.sty)
|
---|
| 9 | CLSSRC=$(wildcard *.cls)
|
---|
| 10 | TEXLIB= .:../../LaTeXmacros:${BUILD}:
|
---|
| 11 | BIBLIB= .:../../bibliography
|
---|
| 12 |
|
---|
| 13 | # Since tex programs like to add their own file extensions:
|
---|
| 14 | BASE= ${DOC:%.pdf=%}
|
---|
[5a3d67c] | 15 |
|
---|
[6a8208cb] | 16 | RAWSRC=${TEXSRC} ${BIBSRC} ${STYSRC} ${CLSSRC}
|
---|
| 17 | FIGTEX=${FIGSRC:%.fig=${BUILD}/%.tex}
|
---|
| 18 |
|
---|
[5a3d67c] | 19 | ### Special Rules:
|
---|
| 20 |
|
---|
| 21 | .PHONY: all clean deepclean
|
---|
| 22 |
|
---|
| 23 | ### Commands:
|
---|
[6a8208cb] | 24 | LATEX=TEXINPUTS=${TEXLIB} latex -halt-on-error -output-directory=${BUILD}
|
---|
[de47a9d] | 25 | BIBTEX=BIBINPUTS=${BIBLIB} bibtex
|
---|
| 26 | GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
|
---|
[5a3d67c] | 27 |
|
---|
[de47a9d] | 28 | ### Rules and Recipies:
|
---|
[5a3d67c] | 29 |
|
---|
| 30 | all: ${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}
|
---|
| 36 | ${GLOSSARY} ${BUILD}/${BASE}
|
---|
| 37 | ${LATEX} ${BASE}
|
---|
| 38 |
|
---|
[6a8208cb] | 39 | # Convert xfig output to tex. (Generates \special declarations.)
|
---|
| 40 | ${FIGTEX}: ${BUILD}/%.tex: %.fig | ${BUILD}
|
---|
| 41 | fig2dev -L eepic $< > $@
|
---|
| 42 |
|
---|
| 43 | # Step through dvi & postscript to handle xfig specials.
|
---|
| 44 | %.pdf : ${BUILD}/%.dvi
|
---|
| 45 | dvipdf $^ $@
|
---|
[de47a9d] | 46 |
|
---|
[5a3d67c] | 47 | ${BUILD}:
|
---|
| 48 | mkdir $@
|
---|
| 49 |
|
---|
| 50 | clean:
|
---|
[de47a9d] | 51 | -@rm -rv ${BUILD}
|
---|
[5a3d67c] | 52 |
|
---|
| 53 | deepclean: clean
|
---|
[de47a9d] | 54 | -@rm -v ${DOC}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.