source: doc/theses/mubeen_zulfiqar_MMath/Makefile @ ba897d21

ADTast-experimentalpthread-emulationqualifiedEnum
Last change on this file since ba897d21 was 1eec0b0, checked in by Peter A. Buhr <pabuhr@…>, 2 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
Line 
1# directory for latex clutter files
2Build = build
3Figures = figures
4Pictures = pictures
5TeXSRC = ${wildcard *.tex}
6FigSRC = ${notdir ${wildcard ${Figures}/*.fig}}
7PicSRC = ${notdir ${wildcard ${Pictures}/*.fig}}
8BIBSRC = ${wildcard *.bib}
9TeXLIB = .:../../LaTeXmacros:${Build}: # common latex macros
10BibLIB = .:../../bibliography # common citation repository
11
12MAKEFLAGS = --no-print-directory # --silent
13VPATH = ${Build} ${Figures} ${Pictures} # extra search path for file names used in document
14
15### Special Rules:
16
17.PHONY: all clean
18.PRECIOUS: %.dvi %.ps # do not delete intermediate files
19
20### Commands:
21
22LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
23BibTeX = BIBINPUTS=${BibLIB} bibtex
24#Glossary = INDEXSTYLE=${Build} makeglossaries-lite
25
26### Rules and Recipes:
27
28DOC = uw-ethesis.pdf
29BASE = ${DOC:%.pdf=%} # remove suffix
30
31all: ${DOC}
32
33clean:
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}
46
47${Build}:
48        mkdir $@
49
50%.pdf : ${Build}/%.ps | ${Build}
51        ps2pdf $<
52
53%.ps : %.dvi | ${Build}
54        dvips $< -o $@
55
56%.tex : %.fig | ${Build}
57        fig2dev -L eepic $< > ${Build}/$@
58
59%.ps : %.fig | ${Build}
60        fig2dev -L ps $< > ${Build}/$@
61
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.