source: doc/theses/mubeen_zulfiqar_MMath/Makefile @ 2a77817

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 2a77817 was 37e9c1d, checked in by Peter A. Buhr <pabuhr@…>, 3 years ago

harmonize latex macros and Makefiles, small wording correction

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# Configuration variables
2
3Build = build
4Figures = figures
5Pictures = pictures
6
7TeXSRC = ${wildcard *.tex}
8FigSRC = ${notdir ${wildcard ${Figures}/*.fig}}
9PicSRC = ${notdir ${wildcard ${Pictures}/*.fig}}
10BibSRC = ${wildcard *.bib}
11
12TeXLIB = .:../../LaTeXmacros:${Build}:          # common latex macros
13BibLIB = .:../../bibliography                   # common citation repository
14
15MAKEFLAGS = --no-print-directory # --silent
16VPATH = ${Build} ${Figures} ${Pictures} # extra search path for file names used in document
17
18DOCUMENT = uw-ethesis.pdf
19BASE = ${basename ${DOCUMENT}}                  # remove suffix
20
21# Commands
22
23LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
24BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex
25#Glossary = INDEXSTYLE=${Build} makeglossaries-lite
26
27# Rules and Recipes
28
29.PHONY : all clean                              # not file names
30.PRECIOUS: %.dvi %.ps # do not delete intermediate files
31.ONESHELL :
32
33all : ${DOCUMENT}
34
35clean :
36        @rm -frv ${DOCUMENT} ${Build}
37
38# File Dependencies
39
40%.dvi : ${TeXSRC} ${FigSRC:%.fig=%.tex} ${PicSRC:%.fig=%.pstex} ${BibSRC} Makefile | ${Build}
41        ${LaTeX} ${BASE}
42        ${BibTeX} ${Build}/${BASE}
43        ${LaTeX} ${BASE}
44        # if needed, run latex again to get citations
45        if fgrep -s "LaTeX Warning: Citation" ${basename $@}.log ; then ${LaTeX} ${BASE} ; fi
46#       ${Glossary} ${Build}/${BASE}
47#       ${LaTeX} ${BASE}
48
49${Build}:
50        mkdir -p $@
51
52%.pdf : ${Build}/%.ps | ${Build}
53        ps2pdf $<
54
55%.ps : %.dvi | ${Build}
56        dvips $< -o $@
57
58%.tex : %.fig | ${Build}
59        fig2dev -L eepic $< > ${Build}/$@
60
61%.ps : %.fig | ${Build}
62        fig2dev -L ps $< > ${Build}/$@
63
64%.pstex : %.fig | ${Build}
65        fig2dev -L pstex $< > ${Build}/$@
66        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
Note: See TracBrowser for help on using the repository browser.