source: doc/theses/mike_brooks_MMath/Makefile @ bbf6a180

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since bbf6a180 was bbf6a180, checked in by Peter A. Buhr <pabuhr@…>, 2 years ago

change to uw-ethesis and restructure source

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# Configuration variables
2
3Build = build
4Pictures = pictures
5Programs = programs
6
7TeXSRC = ${wildcard *.tex}
8PicSRC = ${notdir ${wildcard ${Pictures}/*.png}}
9DemoSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}}
10PgmSRC = ${notdir ${wildcard ${Programs}/*.cfa}}
11BibSRC = ${wildcard *.bib}
12
13TeXLIB = .:../../LaTeXmacros:${Build}:          # common latex macros
14BibLIB = .:../../bibliography                   # common citation repository
15
16MAKEFLAGS = --no-print-directory # --silent
17VPATH = ${Build} ${Pictures} ${Programs} # extra search path for file names used in document
18
19DOCUMENT = uw-ethesis.pdf
20BASE = ${basename ${DOCUMENT}}                  # remove suffix
21
22# Commands
23
24LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build}
25BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex
26
27# Rules and Recipes
28
29.PHONY : all clean                              # not file names
30.ONESHELL :
31
32all : ${DOCUMENT}
33
34clean :
35        @rm -frv ${DOCUMENT} ${Build}
36
37# File Dependencies
38
39%.pdf : ${TeXSRC} ${DemoSRC:%.cfa=%.tex} ${PicSRC} ${PgmSRC} ${BibSRC} Makefile | ${Build}
40        ${LaTeX} ${BASE}
41        ${BibTeX} ${Build}/${BASE}
42        ${LaTeX} ${BASE}
43        # if needed, run latex again to get citations
44        if fgrep -s "LaTeX Warning: Citation" ${basename $@}.log ; then ${LaTeX} ${BASE} ; fi
45#       ${Glossary} ${Build}/${BASE}
46#       ${LaTeX} ${BASE}
47        cp ${Build}/$@ $@
48
49${Build}:
50        mkdir -p $@
51
52%-demo.tex: %-demo | ${Build}
53        ${Build}/$< > ${Build}/$@
54
55%-demo: %-demo.cfa
56        cfa $< -o ${Build}/$@
57
Note: See TracBrowser for help on using the repository browser.