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