Ignore:
Timestamp:
Apr 20, 2021, 4:34:59 PM (5 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
0583b47b, 6c5d92f
Parents:
d2fadeb (diff), 6a8208c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'andrew-mmath' into 'master', collecting my responses to Peter's last updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/andrew_beach_MMath/Makefile

    rd2fadeb r59f3f61  
    11### Makefile for Andrew Beach's Masters Thesis
    22
    3 DOC = uw-ethesis.pdf
    4 BASE = ${DOC:%.pdf=%} # remove suffix
    5 # directory for latex clutter files
    6 BUILD = build
    7 TEXSRC = $(wildcard *.tex)
    8 FIGSRC = $(wildcard *.fig)
    9 BIBSRC = $(wildcard *.bib)
    10 STYSRC = $(wildcard *.sty)
    11 CLSSRC = $(wildcard *.cls)
    12 TEXLIB = .:../../LaTeXmacros:${BUILD}: # common latex macros
    13 BIBLIB = .:../../bibliography # common citation repository
     3DOC=uw-ethesis.pdf
     4BUILD=out
     5TEXSRC=$(wildcard *.tex)
     6FIGSRC=$(wildcard *.fig)
     7BIBSRC=$(wildcard *.bib)
     8STYSRC=$(wildcard *.sty)
     9CLSSRC=$(wildcard *.cls)
     10TEXLIB= .:../../LaTeXmacros:${BUILD}:
     11BIBLIB= .:../../bibliography
    1412
    15 MAKEFLAGS = --no-print-directory # --silent
    16 VPATH = ${BUILD}
     13# Since tex programs like to add their own file extensions:
     14BASE= ${DOC:%.pdf=%}
     15
     16RAWSRC=${TEXSRC} ${BIBSRC} ${STYSRC} ${CLSSRC}
     17FIGTEX=${FIGSRC:%.fig=${BUILD}/%.tex}
    1718
    1819### Special Rules:
    1920
    2021.PHONY: all clean deepclean
    21 .PRECIOUS: %.dvi %.ps # do not delete intermediate files
    2222
    2323### Commands:
    24 LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
    25 BIBTEX = BIBINPUTS=${BIBLIB} bibtex
    26 GLOSSARY = INDEXSTYLE=${BUILD} makeglossaries-lite
     24LATEX=TEXINPUTS=${TEXLIB} latex -halt-on-error -output-directory=${BUILD}
     25BIBTEX=BIBINPUTS=${BIBLIB} bibtex
     26GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
    2727
    28 ### Rules and Recipes:
     28### Rules and Recipies:
    2929
    3030all: ${DOC}
    3131
    32 ${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:.fig=.tex} ${BIBSRC} ${STYSRC} ${CLSSRC} Makefile | ${BUILD}
     32# The main rule, it does all the tex/latex processing.
     33${BUILD}/${BASE}.dvi: ${RAWSRC} ${FIGTEX} Makefile | ${BUILD}
    3334        ${LATEX} ${BASE}
    3435        ${BIBTEX} ${BUILD}/${BASE}
     
    3738        ${LATEX} ${BASE}
    3839
     40# Convert xfig output to tex. (Generates \special declarations.)
     41${FIGTEX}: ${BUILD}/%.tex: %.fig | ${BUILD}
     42        fig2dev -L eepic $< > $@
     43
     44# Step through dvi & postscript to handle xfig specials.
     45%.pdf : ${BUILD}/%.dvi
     46        dvipdf $^ $@
     47
    3948${BUILD}:
    4049        mkdir $@
    4150
    42 %.pdf : ${BUILD}/%.ps | ${BUILD}
    43         ps2pdf $<
    44 
    45 %.ps : %.dvi | ${BUILD}
    46         dvips $< -o $@
    47 
    48 %.tex : %.fig | ${BUILD}
    49         fig2dev -L eepic $< > ${BUILD}/$@
    50 
    51 %.ps : %.fig | ${BUILD}
    52         fig2dev -L ps $< > ${BUILD}/$@
    53 
    54 %.pstex : %.fig | ${BUILD}
    55         fig2dev -L pstex $< > ${BUILD}/$@
    56         fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
    57 
    5851clean:
    59         @rm -frv ${BUILD} *.fig.bak
     52        -@rm -rv ${BUILD}
    6053
    6154deepclean: clean
    62         -@rm -fv ${DOC}
     55        -@rm -v ${DOC}
Note: See TracChangeset for help on using the changeset viewer.