ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change
on this file since cc7bbe6 was
1eec0b0,
checked in by Peter A. Buhr <pabuhr@…>, 3 years ago
|
organizes figures into directories, update Makefile, add text from allocator paper as starting point
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[659fb73] | 1 | # directory for latex clutter files |
---|
[1eec0b0] | 2 | Build = build |
---|
| 3 | Figures = figures |
---|
| 4 | Pictures = pictures |
---|
| 5 | TeXSRC = ${wildcard *.tex} |
---|
| 6 | FigSRC = ${notdir ${wildcard ${Figures}/*.fig}} |
---|
| 7 | PicSRC = ${notdir ${wildcard ${Pictures}/*.fig}} |
---|
| 8 | BIBSRC = ${wildcard *.bib} |
---|
| 9 | TeXLIB = .:../../LaTeXmacros:${Build}: # common latex macros |
---|
| 10 | BibLIB = .:../../bibliography # common citation repository |
---|
[659fb73] | 11 | |
---|
| 12 | MAKEFLAGS = --no-print-directory # --silent |
---|
[1eec0b0] | 13 | VPATH = ${Build} ${Figures} ${Pictures} # extra search path for file names used in document |
---|
[ab5498ec] | 14 | |
---|
| 15 | ### Special Rules: |
---|
| 16 | |
---|
[659fb73] | 17 | .PHONY: all clean |
---|
[d286e94d] | 18 | .PRECIOUS: %.dvi %.ps # do not delete intermediate files |
---|
[ab5498ec] | 19 | |
---|
| 20 | ### Commands: |
---|
[1eec0b0] | 21 | |
---|
| 22 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} |
---|
| 23 | BibTeX = BIBINPUTS=${BibLIB} bibtex |
---|
| 24 | #Glossary = INDEXSTYLE=${Build} makeglossaries-lite |
---|
[ab5498ec] | 25 | |
---|
[659fb73] | 26 | ### Rules and Recipes: |
---|
[ab5498ec] | 27 | |
---|
[1eec0b0] | 28 | DOC = uw-ethesis.pdf |
---|
| 29 | BASE = ${DOC:%.pdf=%} # remove suffix |
---|
| 30 | |
---|
[ab5498ec] | 31 | all: ${DOC} |
---|
| 32 | |
---|
[1eec0b0] | 33 | clean: |
---|
| 34 | @rm -frv ${DOC} ${Build} |
---|
| 35 | |
---|
| 36 | # File Dependencies # |
---|
| 37 | |
---|
| 38 | ${Build}/%.dvi : ${TeXSRC} ${FigSRC:%.fig=%.tex} ${PicSRC:%.fig=%.pstex} ${BIBSRC} Makefile | ${Build} |
---|
| 39 | ${LaTeX} ${BASE} |
---|
| 40 | ${BibTeX} ${Build}/${BASE} |
---|
| 41 | ${LaTeX} ${BASE} |
---|
| 42 | # if nedded, run latex again to get citations |
---|
| 43 | if fgrep -s "LaTeX Warning: Citation" ${basename $@}.log ; then ${LaTeX} ${BASE} ; fi |
---|
| 44 | # ${Glossary} ${Build}/${BASE} |
---|
| 45 | # ${LaTeX} ${BASE} |
---|
[ab5498ec] | 46 | |
---|
[1eec0b0] | 47 | ${Build}: |
---|
[ab5498ec] | 48 | mkdir $@ |
---|
| 49 | |
---|
[1eec0b0] | 50 | %.pdf : ${Build}/%.ps | ${Build} |
---|
[659fb73] | 51 | ps2pdf $< |
---|
| 52 | |
---|
[1eec0b0] | 53 | %.ps : %.dvi | ${Build} |
---|
[659fb73] | 54 | dvips $< -o $@ |
---|
[ab5498ec] | 55 | |
---|
[1eec0b0] | 56 | %.tex : %.fig | ${Build} |
---|
| 57 | fig2dev -L eepic $< > ${Build}/$@ |
---|
[659fb73] | 58 | |
---|
[1eec0b0] | 59 | %.ps : %.fig | ${Build} |
---|
| 60 | fig2dev -L ps $< > ${Build}/$@ |
---|
[659fb73] | 61 | |
---|
[1eec0b0] | 62 | %.pstex : %.fig | ${Build} |
---|
| 63 | fig2dev -L pstex $< > ${Build}/$@ |
---|
| 64 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t |
---|
Note: See
TracBrowser
for help on using the repository browser.