source: doc/theses/mike_brooks_MMath/Makefile@ 80d16f8

ADT ast-experimental pthread-emulation
Last change on this file since 80d16f8 was 1a9592a, checked in by Michael Brooks <mlbrooks@…>, 4 years ago

Accepting the new structure, deleting the old

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[bbf6a180]1# Configuration variables
[8e819a9]2
[bbf6a180]3Build = build
4Pictures = pictures
5Programs = programs
[8e819a9]6
[bbf6a180]7TeXSRC = ${wildcard *.tex}
8PicSRC = ${notdir ${wildcard ${Pictures}/*.png}}
9DemoSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}}
10PgmSRC = ${notdir ${wildcard ${Programs}/*.cfa}}
11BibSRC = ${wildcard *.bib}
[8e819a9]12
[bbf6a180]13TeXLIB = .:../../LaTeXmacros:${Build}: # common latex macros
14BibLIB = .:../../bibliography # common citation repository
[8e819a9]15
16MAKEFLAGS = --no-print-directory # --silent
[bbf6a180]17VPATH = ${Build} ${Pictures} ${Programs} # extra search path for file names used in document
[8e819a9]18
[bbf6a180]19DOCUMENT = uw-ethesis.pdf
20BASE = ${basename ${DOCUMENT}} # remove suffix
[8e819a9]21
[bbf6a180]22# Commands
[8e819a9]23
[bbf6a180]24LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build}
25BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex
[1a9592a]26CFA = cfa
[8e819a9]27
[bbf6a180]28# Rules and Recipes
[8e819a9]29
[bbf6a180]30.PHONY : all clean # not file names
31.ONESHELL :
[8e819a9]32
33all : ${DOCUMENT}
34
35clean :
[bbf6a180]36 @rm -frv ${DOCUMENT} ${Build}
37
38# File Dependencies
39
40%.pdf : ${TeXSRC} ${DemoSRC:%.cfa=%.tex} ${PicSRC} ${PgmSRC} ${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}
[8e819a9]48 cp ${Build}/$@ $@
49
50${Build}:
[bbf6a180]51 mkdir -p $@
52
53%-demo.tex: %-demo | ${Build}
54 ${Build}/$< > ${Build}/$@
55
56%-demo: %-demo.cfa
[1a9592a]57 ${CFA} $< -o ${Build}/$@
[8e819a9]58
Note: See TracBrowser for help on using the repository browser.