Ignore:
Timestamp:
Apr 10, 2022, 2:53:18 PM (4 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
d8e2a09
Parents:
4559b34 (diff), 6256891 (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:

Resolve conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mubeen_zulfiqar_MMath/Makefile

    r4559b34 r92538ab  
    1 DOC = uw-ethesis.pdf
    2 BASE = ${DOC:%.pdf=%} # remove suffix
    3 # directory for latex clutter files
    4 BUILD = build
    5 TEXSRC = $(wildcard *.tex)
    6 FIGSRC = $(wildcard *.fig)
    7 BIBSRC = $(wildcard *.bib)
    8 TEXLIB = .:../../LaTeXmacros:${BUILD}: # common latex macros
    9 BIBLIB = .:../../bibliography # common citation repository
     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
    1014
    1115MAKEFLAGS = --no-print-directory # --silent
    12 VPATH = ${BUILD}
     16VPATH = ${Build} ${Figures} ${Pictures} # extra search path for file names used in document
    1317
    14 ### Special Rules:
     18DOCUMENT = uw-ethesis.pdf
     19BASE = ${basename ${DOCUMENT}}                  # remove suffix
    1520
    16 .PHONY: all clean
     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
    1730.PRECIOUS: %.dvi %.ps # do not delete intermediate files
     31.ONESHELL :
    1832
    19 ### Commands:
    20 LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
    21 BIBTEX = BIBINPUTS=${BIBLIB} bibtex
    22 #GLOSSARY = INDEXSTYLE=${BUILD} makeglossaries-lite
     33all : ${DOCUMENT}
    2334
    24 ### Rules and Recipes:
     35clean :
     36        @rm -frv ${DOCUMENT} ${Build}
    2537
    26 all: ${DOC}
     38# File Dependencies
    2739
    28 ${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:%.fig=%.tex} ${BIBSRC} Makefile | ${BUILD}
    29         ${LATEX} ${BASE}
    30         ${BIBTEX} ${BUILD}/${BASE}
    31         ${LATEX} ${BASE}
    32 #       ${GLOSSARY} ${BUILD}/${BASE}
    33 #       ${LATEX} ${BASE}
     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}
    3448
    35 ${BUILD}:
    36         mkdir $@
     49${Build}:
     50        mkdir -p $@
    3751
    38 %.pdf : ${BUILD}/%.ps | ${BUILD}
     52%.pdf : ${Build}/%.ps | ${Build}
    3953        ps2pdf $<
    4054
    41 %.ps : %.dvi | ${BUILD}
     55%.ps : %.dvi | ${Build}
    4256        dvips $< -o $@
    4357
    44 %.tex : %.fig | ${BUILD}
    45         fig2dev -L eepic $< > ${BUILD}/$@
     58%.tex : %.fig | ${Build}
     59        fig2dev -L eepic $< > ${Build}/$@
    4660
    47 %.ps : %.fig | ${BUILD}
    48         fig2dev -L ps $< > ${BUILD}/$@
     61%.ps : %.fig | ${Build}
     62        fig2dev -L ps $< > ${Build}/$@
    4963
    50 %.pstex : %.fig | ${BUILD}
    51         fig2dev -L pstex $< > ${BUILD}/$@
    52         fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
    53 
    54 clean:
    55         @rm -frv ${DOC} ${BUILD} *.fig.bak
     64%.pstex : %.fig | ${Build}
     65        fig2dev -L pstex $< > ${Build}/$@
     66        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
Note: See TracChangeset for help on using the changeset viewer.