ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change
on this file since 37e9c1d 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
|
Rev | Line | |
---|
[bbf6a180] | 1 | # Configuration variables |
---|
[8e819a9] | 2 | |
---|
[bbf6a180] | 3 | Build = build |
---|
| 4 | Pictures = pictures |
---|
| 5 | Programs = programs |
---|
[8e819a9] | 6 | |
---|
[bbf6a180] | 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} |
---|
[8e819a9] | 12 | |
---|
[bbf6a180] | 13 | TeXLIB = .:../../LaTeXmacros:${Build}: # common latex macros |
---|
| 14 | BibLIB = .:../../bibliography # common citation repository |
---|
[8e819a9] | 15 | |
---|
| 16 | MAKEFLAGS = --no-print-directory # --silent |
---|
[bbf6a180] | 17 | VPATH = ${Build} ${Pictures} ${Programs} # extra search path for file names used in document |
---|
[8e819a9] | 18 | |
---|
[bbf6a180] | 19 | DOCUMENT = uw-ethesis.pdf |
---|
| 20 | BASE = ${basename ${DOCUMENT}} # remove suffix |
---|
[8e819a9] | 21 | |
---|
[bbf6a180] | 22 | # Commands |
---|
[8e819a9] | 23 | |
---|
[bbf6a180] | 24 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build} |
---|
| 25 | BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex |
---|
[8e819a9] | 26 | |
---|
[bbf6a180] | 27 | # Rules and Recipes |
---|
[8e819a9] | 28 | |
---|
[bbf6a180] | 29 | .PHONY : all clean # not file names |
---|
| 30 | .ONESHELL : |
---|
[8e819a9] | 31 | |
---|
| 32 | all : ${DOCUMENT} |
---|
| 33 | |
---|
| 34 | clean : |
---|
[bbf6a180] | 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} |
---|
[8e819a9] | 47 | cp ${Build}/$@ $@ |
---|
| 48 | |
---|
| 49 | ${Build}: |
---|
[bbf6a180] | 50 | mkdir -p $@ |
---|
| 51 | |
---|
| 52 | %-demo.tex: %-demo | ${Build} |
---|
| 53 | ${Build}/$< > ${Build}/$@ |
---|
| 54 | |
---|
| 55 | %-demo: %-demo.cfa |
---|
| 56 | cfa $< -o ${Build}/$@ |
---|
[8e819a9] | 57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.