source: doc/theses/mubeen_zulfiqar_MMath/Makefile @ d0e80f61

arm-ehenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d0e80f61 was 659fb73, checked in by Peter A. Buhr <pabuhr@…>, 18 months ago

change Makefile from pdflatex to latex for .fig output

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