source: doc/theses/mubeen_zulfiqar_MMath/Makefile @ 12c1eef

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 12c1eef was d286e94d, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

comment on Mubeen's thesis writing-points

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[659fb73]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}
[ab5498ec]13
14### Special Rules:
15
[659fb73]16.PHONY: all clean
[d286e94d]17.PRECIOUS: %.dvi %.ps # do not delete intermediate files
[ab5498ec]18
19### Commands:
[659fb73]20LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
21BIBTEX = BIBINPUTS=${BIBLIB} bibtex
[d286e94d]22#GLOSSARY = INDEXSTYLE=${BUILD} makeglossaries-lite
[ab5498ec]23
[659fb73]24### Rules and Recipes:
[ab5498ec]25
26all: ${DOC}
27
[d286e94d]28${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:%.fig=%.tex} ${BIBSRC} Makefile | ${BUILD}
[ab5498ec]29        ${LATEX} ${BASE}
[50d8d4d]30        ${BIBTEX} ${BUILD}/${BASE}
31        ${LATEX} ${BASE}
[ab5498ec]32#       ${GLOSSARY} ${BUILD}/${BASE}
33#       ${LATEX} ${BASE}
34
35${BUILD}:
36        mkdir $@
37
[659fb73]38%.pdf : ${BUILD}/%.ps | ${BUILD}
39        ps2pdf $<
40
41%.ps : %.dvi | ${BUILD}
42        dvips $< -o $@
[ab5498ec]43
[659fb73]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.