Changeset 90152a4 for doc/user/Makefile


Ignore:
Timestamp:
Aug 27, 2018, 4:40:34 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
b7c89aa
Parents:
f9feab8 (diff), 305581d (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' into cleanup-dtors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user/Makefile

    rf9feab8 r90152a4  
    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 = ${Build} ${Figures}
    612
    713## Define the text source files.
     
    3238
    3339DOCUMENT = user.pdf
     40BASE = ${basename ${DOCUMENT}}
    3441
    3542# Directives #
     43
     44.PHONY : all clean                                      # not file names
    3645
    3746all : ${DOCUMENT}
    3847
    3948clean :
    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}
     49        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
    4250
    4351# File Dependencies #
    4452
    45 ${DOCUMENT} : ${basename ${DOCUMENT}}.ps
     53build/version: ../../configure | ${Build}
     54        ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
     55
     56${DOCUMENT} : ${BASE}.ps
    4657        ps2pdf $<
    4758
    48 ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    49         dvips $< -o $@
     59${BASE}.ps : ${BASE}.dvi
     60        dvips ${Build}/$< -o $@
    5061
    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
     62${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
     63                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib build/version | ${Build}
    5364        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    54         if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
     65        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
    5566        # Must have *.aux file containing citations for bibtex
    5667        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
     68        -${BibTeX} ${Build}/${basename $@}
     69        # Some citations reference others so run again to resolve these citations
    5970        ${LaTeX} ${basename $@}.tex
    60         -${BibTeX} ${basename $@}
     71        -${BibTeX} ${Build}/${basename $@}
    6172        # Make index from *.aux entries and input index at end of document
    62         makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
     73        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
     74        # Run again to finish citations
    6375        ${LaTeX} ${basename $@}.tex
    6476        # Run again to get index title into table of contents
    6577        ${LaTeX} ${basename $@}.tex
    6678
    67 predefined :
    68         sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
    69 
    7079## Define the default recipes.
    7180
    72 %.tex : %.fig
    73         fig2dev -L eepic $< > $@
     81${Build}:
     82        mkdir -p ${Build}
    7483
    75 %.ps : %.fig
    76         fig2dev -L ps $< > $@
     84%.tex : %.fig | ${Build}
     85        fig2dev -L eepic $< > ${Build}/$@
    7786
    78 %.pstex : %.fig
    79         fig2dev -L pstex $< > $@
    80         fig2dev -L pstex_t -p $@ $< > $@_t
     87%.ps : %.fig | ${Build}
     88        fig2dev -L ps $< > ${Build}/$@
     89
     90%.pstex : %.fig | ${Build}
     91        fig2dev -L pstex $< > ${Build}/$@
     92        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
    8193
    8294# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.