source: doc/theses/mubeen_zulfiqar_MMath/Makefile @ fe63ae6

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since fe63ae6 was 659fb73, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

change Makefile from pdflatex to latex for .fig output

  • Property mode set to 100644
File size: 1.2 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
18### Commands:
19LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
20BIBTEX = BIBINPUTS=${BIBLIB} bibtex
21#GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
22
23### Rules and Recipes:
24
25all: ${DOC}
26
27${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:.fig=.tex} ${BIBSRC} Makefile | ${BUILD}
28        ${LATEX} ${BASE}
29        ${BIBTEX} ${BUILD}/${BASE}
30        ${LATEX} ${BASE}
31#       ${GLOSSARY} ${BUILD}/${BASE}
32#       ${LATEX} ${BASE}
33
34${BUILD}:
35        mkdir $@
36
37%.pdf : ${BUILD}/%.ps | ${BUILD}
38        ps2pdf $<
39
40%.ps : %.dvi | ${BUILD}
41        dvips $< -o $@
42
43%.tex : %.fig | ${BUILD}
44        fig2dev -L eepic $< > ${BUILD}/$@
45
46%.ps : %.fig | ${BUILD}
47        fig2dev -L ps $< > ${BUILD}/$@
48
49%.pstex : %.fig | ${BUILD}
50        fig2dev -L pstex $< > ${BUILD}/$@
51        fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
52
53clean:
54        @rm -frv ${DOC} ${BUILD} *.fig.bak
Note: See TracBrowser for help on using the repository browser.