Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/aaron_moss/comp_II/Makefile

    r23c27039 r728df66  
    1 ## Define the configuration variables.
     1## Define the appropriate configuration variables.
    22
    3 Build = build
    4 Figures = figures
    5 Macros = ../../../LaTeXmacros
    6 TeXLIB = .:${Macros}:${Build}:../../../bibliography:
    7 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
     3TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/:
     4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
    85BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
    9 
    10 MAKEFLAGS = --no-print-directory --silent #
    11 VPATH = ${Build} ${Figures}
    126
    137## Define the text source files.
     
    3529# Directives #
    3630
    37 .PHONY : all clean                                      # not file names
    38 
    3931all : ${DOCUMENT}
    4032
    4133clean :
    42         @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
     34        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
     35                ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
    4336
    4437# File Dependencies #
     
    4841
    4942${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    50         dvips ${Build}/$< -o $@
     43        dvips $< -o $@
    5144
    52 ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
    53                 ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib
     45${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
     46                ../LaTeXmacros/common.tex ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
     47        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
     48        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
    5449        # Must have *.aux file containing citations for bibtex
    5550        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    56         -${BibTeX} ${Build}/${basename $@}
    57         # Some citations reference others so run again to resolve these citations
     51        -${BibTeX} ${basename $@}
     52        # Some citations reference others so run steps again to resolve these citations
    5853        ${LaTeX} ${basename $@}.tex
    59         -${BibTeX} ${Build}/${basename $@}
    60         # Run again to finish citations
     54        -${BibTeX} ${basename $@}
     55        # Make index from *.aux entries and input index at end of document
     56        makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
    6157        ${LaTeX} ${basename $@}.tex
     58        # Run again to get index title into table of contents
     59        ${LaTeX} ${basename $@}.tex
     60
     61predefined :
     62        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
    6263
    6364## Define the default recipes.
    6465
    65 ${Build}:
    66         mkdir -p ${Build}
    67 
    6866%.tex : %.fig
    69         fig2dev -L eepic $< > ${Build}/$@
     67        fig2dev -L eepic $< > $@
    7068
    7169%.ps : %.fig
    72         fig2dev -L ps $< > ${Build}/$@
     70        fig2dev -L ps $< > $@
    7371
    7472%.pstex : %.fig
    75         fig2dev -L pstex $< > ${Build}/$@
    76         fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
     73        fig2dev -L pstex $< > $@
     74        fig2dev -L pstex_t -p $@ $< > $@_t
    7775
    7876# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.