Changeset bbf6a180


Ignore:
Timestamp:
Apr 2, 2022, 4:50:42 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
cf08cb2
Parents:
f8fc560
Message:

change to uw-ethesis and restructure source

Location:
doc/theses/mike_brooks_MMath
Files:
16 added
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/Makefile

    rf8fc560 rbbf6a180  
    1 ## Define the configuration variables.
     1# Configuration variables
    22
    3 MODULES = \
    4         string
     3Build = build
     4Pictures = pictures
     5Programs = programs
    56
    6 Build ?= build
    7 Macros ?= ../../LaTeXmacros
    8 PLBib ?= ../../bibliography
     7TeXSRC = ${wildcard *.tex}
     8PicSRC = ${notdir ${wildcard ${Pictures}/*.png}}
     9DemoSRC = ${notdir ${wildcard ${Programs}/*-demo.cfa}}
     10PgmSRC = ${notdir ${wildcard ${Programs}/*.cfa}}
     11BibSRC = ${wildcard *.bib}
    912
    10 MODULE_PHONIES = ${addsuffix .module,$(MODULES)}
    11 MODULE_BUILDDIRS = ${addprefix $(Build)/,$(MODULES)}
    12 
    13 TeXLIB = .:${Macros}:${Build}:${MODULE_BUILDDIRS}:${PLBib}:
    14 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
    15 pdfLaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build}
    16 BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
     13TeXLIB = .:../../LaTeXmacros:${Build}:          # common latex macros
     14BibLIB = .:../../bibliography                   # common citation repository
    1715
    1816MAKEFLAGS = --no-print-directory # --silent
     17VPATH = ${Build} ${Pictures} ${Programs} # extra search path for file names used in document
    1918
     19DOCUMENT = uw-ethesis.pdf
     20BASE = ${basename ${DOCUMENT}}                  # remove suffix
    2021
     22# Commands
    2123
    22 ## Define the documents that need to be made.
    23 all: thesis.pdf
    24 thesis.pdf: ${MODULE_PHONIES} thesis.tex glossary.tex $(Macros)/common.tex $(Macros)/common.sty  # local.bib
     24LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && pdflatex -halt-on-error -output-directory=${Build}
     25BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex
    2526
    26 DOCUMENT = thesis.pdf
    27 BASE = ${basename ${DOCUMENT}}
     27# Rules and Recipes
    2828
    29 # Directives #
    30 
    31 .NOTPARALLEL:                                           # cannot make in parallel
    32 
    33 .PHONY : all clean %.module                     # not file names
     29.PHONY : all clean                              # not file names
     30.ONESHELL :
    3431
    3532all : ${DOCUMENT}
    3633
    3734clean :
    38         @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
     35        @rm -frv ${DOCUMENT} ${Build}
    3936
    40 # File Dependencies #
     37# File Dependencies
    4138
    42 # %.pdf : build/%.ps | ${Build}
    43 #       ps2pdf $<
    44 
    45 # build/%.ps : build/%.dvi | ${Build}
    46 #       dvips $< -o $@
    47 
    48 # build/%.dvi : %.tex Makefile | ${Build}
    49 #       # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    50 #       if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
    51 #       # Must have *.aux file containing citations for bibtex
    52 #       if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
    53 #       -${BibTeX} ${basename $@}
    54 #       # Some citations reference others so run again to resolve these citations
    55 #       ${LaTeX} $<
    56 #       -${BibTeX} ${basename $@}
    57 #       # Make index from *.aux entries and input index at end of document
    58 #       -makeglossaries -q -s ${basename $@}.ist ${basename $@}
    59 #       # Make index from *.aux entries and input index at end of document
    60 #       -makeindex ${basename $@}.idx
    61 #       # Run again to finish citations
    62 #       ${LaTeX} $<
    63 
    64 %.pdf : %.tex | ${Build}
    65         ${pdfLaTeX} $<
     39%.pdf : ${TeXSRC} ${DemoSRC:%.cfa=%.tex} ${PicSRC} ${PgmSRC} ${BibSRC} Makefile | ${Build}
     40        ${LaTeX} ${BASE}
     41        ${BibTeX} ${Build}/${BASE}
     42        ${LaTeX} ${BASE}
     43        # if needed, run latex again to get citations
     44        if fgrep -s "LaTeX Warning: Citation" ${basename $@}.log ; then ${LaTeX} ${BASE} ; fi
     45#       ${Glossary} ${Build}/${BASE}
     46#       ${LaTeX} ${BASE}
    6647        cp ${Build}/$@ $@
    6748
    6849${Build}:
    69         mkdir -p ${Build}
     50        mkdir -p $@
    7051
    71 %.module: content/%
    72         $(MAKE) -C $< BuildBase=../../$(Build)
     52%-demo.tex: %-demo | ${Build}
     53        ${Build}/$< > ${Build}/$@
     54
     55%-demo: %-demo.cfa
     56        cfa $< -o ${Build}/$@
     57
Note: See TracChangeset for help on using the changeset viewer.