source: doc/theses/mubeen_zulfiqar_MMath/Makefile @ bc4a433

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since bc4a433 was d286e94d, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

comment on Mubeen's thesis writing-points

  • Property mode set to 100644
File size: 1.3 KB
Line 
1DOC = uw-ethesis.pdf
2BASE = ${DOC:%.pdf=%} # remove suffix
3# directory for latex clutter files
4BUILD = build
5TEXSRC = $(wildcard *.tex)
6FIGSRC = $(wildcard *.fig)
7BIBSRC = $(wildcard *.bib)
8TEXLIB = .:../../LaTeXmacros:${BUILD}: # common latex macros
9BIBLIB = .:../../bibliography # common citation repository
10
11MAKEFLAGS = --no-print-directory # --silent
12VPATH = ${BUILD}
13
14### Special Rules:
15
16.PHONY: all clean
17.PRECIOUS: %.dvi %.ps # do not delete intermediate files
18
19### Commands:
20LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
21BIBTEX = BIBINPUTS=${BIBLIB} bibtex
22#GLOSSARY = INDEXSTYLE=${BUILD} makeglossaries-lite
23
24### Rules and Recipes:
25
26all: ${DOC}
27
28${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:%.fig=%.tex} ${BIBSRC} Makefile | ${BUILD}
29        ${LATEX} ${BASE}
30        ${BIBTEX} ${BUILD}/${BASE}
31        ${LATEX} ${BASE}
32#       ${GLOSSARY} ${BUILD}/${BASE}
33#       ${LATEX} ${BASE}
34
35${BUILD}:
36        mkdir $@
37
38%.pdf : ${BUILD}/%.ps | ${BUILD}
39        ps2pdf $<
40
41%.ps : %.dvi | ${BUILD}
42        dvips $< -o $@
43
44%.tex : %.fig | ${BUILD}
45        fig2dev -L eepic $< > ${BUILD}/$@
46
47%.ps : %.fig | ${BUILD}
48        fig2dev -L ps $< > ${BUILD}/$@
49
50%.pstex : %.fig | ${BUILD}
51        fig2dev -L pstex $< > ${BUILD}/$@
52        fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
53
54clean:
55        @rm -frv ${DOC} ${BUILD} *.fig.bak
Note: See TracBrowser for help on using the repository browser.