Changeset e2e7330 for doc/user/Makefile


Ignore:
Timestamp:
Jan 31, 2018, 5:50:34 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, 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/user/Makefile

    rbc6f918 re2e7330  
    1 ## Define the appropriate configuration variables.
     1## Define the configuration variables.
    22
    3 TeXLIB = .:../LaTeXmacros:../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.
     
    3541# Directives #
    3642
     43.PHONY : all clean                                      # not file names
     44
    3745all : ${DOCUMENT}
    3846
    3947clean :
    40         rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
    41                 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
     48        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
    4249
    4350# File Dependencies #
     
    4754
    4855${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    49         dvips $< -o $@
     56        dvips ${Build}/$< -o $@
    5057
    51 ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
    52                 ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
     58${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
     59                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib
    5360        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    54         if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
     61        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
    5562        # Must have *.aux file containing citations for bibtex
    5663        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    57         -${BibTeX} ${basename $@}
    58         # Some citations reference others so run steps again to resolve these citations
     64        -${BibTeX} ${Build}/${basename $@}
     65        # Some citations reference others so run again to resolve these citations
    5966        ${LaTeX} ${basename $@}.tex
    60         -${BibTeX} ${basename $@}
     67        -${BibTeX} ${Build}/${basename $@}
    6168        # Make index from *.aux entries and input index at end of document
    62         makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
     69        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
     70        # Run again to finish citations
    6371        ${LaTeX} ${basename $@}.tex
    6472        # Run again to get index title into table of contents
    6573        ${LaTeX} ${basename $@}.tex
    6674
    67 predefined :
    68         sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
    69 
    7075## Define the default recipes.
    7176
     77${Build}:
     78        mkdir -p ${Build}
     79
    7280%.tex : %.fig
    73         fig2dev -L eepic $< > $@
     81        fig2dev -L eepic $< > ${Build}/$@
    7482
    7583%.ps : %.fig
    76         fig2dev -L ps $< > $@
     84        fig2dev -L ps $< > ${Build}/$@
    7785
    7886%.pstex : %.fig
    79         fig2dev -L pstex $< > $@
    80         fig2dev -L pstex_t -p $@ $< > $@_t
     87        fig2dev -L pstex $< > ${Build}/$@
     88        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
    8189
    8290# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.