source: doc/theses/andrew_beach_MMath/Makefile @ f9723e8

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since f9723e8 was 5a3d67c, checked in by Andrew Beach <ajbeach@…>, 5 years ago

Cleaned up AB M template some more and add the Makefile.

  • Property mode set to 100644
File size: 803 bytes
Line 
1### Makefile for Andrew Beach's Masters Thesis
2
3DOC=thesis.pdf
4BUILD=out
5TEXSRC=$(wildcard *.tex)
6BIBSRC=$(wildcard *.bib)
7TEXLIB= .:${BUILD}:
8BIBLIB= .:../../bibliography
9
10# Since tex programs like to add their own file extensions:
11BASE= ${DOC:%.pdf=%}
12
13### Special Rules:
14
15.PHONY: all clean deepclean
16
17### Commands:
18LATEX=TEXINPUTS=${TEXLIB} pdflatex -halt-on-error -output-directory=${BUILD}
19BIBTEX=BIBINPUTS=${BIBLIB} bibtex
20GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
21
22### Rules and Recipies:
23
24all: ${DOC}
25
26${BUILD}/${DOC}: ${TEXSRC} ${BIBSRC} Makefile | ${BUILD}
27        ${LATEX} ${BASE}
28        ${BIBTEX} ${BUILD}/${BASE}
29        ${GLOSSARY} ${BUILD}/${BASE}
30        ${LATEX} ${BASE}
31        ${LATEX} ${BASE}
32
33${DOC}: ${BUILD}/${DOC}
34        cp $< $@
35
36${BUILD}:
37        mkdir $@
38
39clean:
40        -@rm -rv ${BUILD}
41
42deepclean: clean
43        -@rm -v ${DOC}
Note: See TracBrowser for help on using the repository browser.