Changeset 659fb73


Ignore:
Timestamp:
Mar 30, 2021, 8:37:24 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d0e80f61
Parents:
b202dc2
Message:

change Makefile from pdflatex to latex for .fig output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mubeen_zulfiqar_MMath/Makefile

    rb202dc2 r659fb73  
    1 ### Makefile from Andrew Beach's Masters Thesis
     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
    210
    3 DOC=uw-ethesis.pdf
    4 BUILD=out
    5 TEXSRC=$(wildcard *.tex)
    6 BIBSRC=$(wildcard *.bib)
    7 STYSRC=$(wildcard *.sty)
    8 CLSSRC=$(wildcard *.cls)
    9 TEXLIB= .:../../LaTeXmacros:${BUILD}:
    10 BIBLIB= .:../../bibliography
    11 
    12 # Since tex programs like to add their own file extensions:
    13 BASE= ${DOC:%.pdf=%}
     11MAKEFLAGS = --no-print-directory # --silent
     12VPATH = ${BUILD}
    1413
    1514### Special Rules:
    1615
    17 .PHONY: all clean deepclean
     16.PHONY: all clean
    1817
    1918### Commands:
    20 LATEX=TEXINPUTS=${TEXLIB} pdflatex -halt-on-error -output-directory=${BUILD}
    21 BIBTEX=BIBINPUTS=${BIBLIB} bibtex
     19LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
     20BIBTEX = BIBINPUTS=${BIBLIB} bibtex
    2221#GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
    2322
    24 ### Rules and Recipies:
     23### Rules and Recipes:
    2524
    2625all: ${DOC}
    2726
    28 ${BUILD}/${DOC}: ${TEXSRC} ${BIBSRC} ${STYSRC} ${CLSSRC} Makefile | ${BUILD}
     27${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:.fig=.tex} ${BIBSRC} Makefile | ${BUILD}
    2928        ${LATEX} ${BASE}
    3029        ${BIBTEX} ${BUILD}/${BASE}
     
    3332#       ${LATEX} ${BASE}
    3433
    35 ${DOC}: ${BUILD}/${DOC}
    36         cp $< $@
    37 
    3834${BUILD}:
    3935        mkdir $@
    4036
     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
    4153clean:
    42         -@rm -rv ${BUILD}
    43 
    44 deepclean: clean
    45         -@rm -v ${DOC}
     54        @rm -frv ${DOC} ${BUILD} *.fig.bak
Note: See TracChangeset for help on using the changeset viewer.