Ignore:
Timestamp:
Jan 31, 2018, 5:50:34 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
295e5071
Parents:
bc6f918 (diff), 281806b (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 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/refrat/Makefile

    rbc6f918 re2e7330  
    1 ## Define the appropriate configuration variables.
     1## Define the configuration variables.
    22
    3 TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/:
    4 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
     3Build = build
     4Figures = figures
     5Macros = ../LaTeXmacros
     6TeXLIB = .:${Macros}:${Build}:../bibliography:
     7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
    58BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
     9
     10MAKEFLAGS = --no-print-directory --silent #
     11VPATH = ${Figures}
    612
    713## Define the text source files.
     
    3137# Directives #
    3238
     39.PHONY : all clean                                      # not file names
     40
    3341all : ${DOCUMENT}
    3442
    3543clean :
    36         rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
    37                 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
     44        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
    3845
    3946# File Dependencies #
     
    4350
    4451${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    45         dvips $< -o $@
     52        dvips ${Build}/$< -o $@
    4653
    47 ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
    48                 ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
     54${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
     55                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib
    4956        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    50         if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
     57        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
    5158        # Must have *.aux file containing citations for bibtex
    5259        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    53         -${BibTeX} ${basename $@}
    54         # Some citations reference others so run steps again to resolve these citations
     60        -${BibTeX} ${Build}/${basename $@}
     61        # Some citations reference others so run again to resolve these citations
    5562        ${LaTeX} ${basename $@}.tex
    56         -${BibTeX} ${basename $@}
     63        -${BibTeX} ${Build}/${basename $@}
    5764        # Make index from *.aux entries and input index at end of document
    58         makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
     65        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
     66        # Run again to finish citations
    5967        ${LaTeX} ${basename $@}.tex
    6068        # Run again to get index title into table of contents
     
    6674## Define the default recipes.
    6775
     76${Build}:
     77        mkdir -p ${Build}
     78
    6879%.tex : %.fig
    69         fig2dev -L eepic $< > $@
     80        fig2dev -L eepic $< > ${Build}/$@
    7081
    7182%.ps : %.fig
    72         fig2dev -L ps $< > $@
     83        fig2dev -L ps $< > ${Build}/$@
    7384
    7485%.pstex : %.fig
    75         fig2dev -L pstex $< > $@
    76         fig2dev -L pstex_t -p $@ $< > $@_t
     86        fig2dev -L pstex $< > ${Build}/$@
     87        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
    7788
    7889# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.