Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified doc/proposals/concurrency/Makefile

    rff98952 r0f9bef3  
    11## Define the appropriate configuration variables.
    22
    3 TeXLIB = .:./style:./text:./annex:./build:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:
    4 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=build -interaction=nonstopmode
    5 BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex -terse
     3TeXLIB = .:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:
     4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
     5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
    66
    77## Define the text source files.
    88
    99SOURCES = ${addsuffix .tex, \
    10 thesis \
    11 style/style \
    12 style/cfa-format \
    13 annex/glossary \
    14 text/intro \
    15 text/basics \
    16 text/concurrency \
    17 text/parallelism \
     10concurrency \
     11style \
     12cfa-format \
     13glossary \
    1814}
    1915
    20 FIGURES = ${addprefix build/, ${addsuffix .tex, \
     16FIGURES = ${addsuffix .tex, \
    2117        monitor \
    2218        ext_monitor \
    23 }}
     19}
    2420
    2521PICTURES = ${addsuffix .pstex, \
     
    3430## Define the documents that need to be made.
    3531
    36 DOCUMENT = thesis.pdf
     32DOCUMENT = concurrency.pdf
    3733
    3834# Directives #
     
    4137
    4238clean :
    43         @rm -fv ${DOCUMENT} \
    44         build/*.acn     \
    45         build/*.acr     \
    46         build/*.alg     \
    47         build/*.aux     \
    48         build/*.bbl     \
    49         build/*.blg     \
    50         build/*.brf     \
    51         build/*.cf      \
    52         build/*.dvi     \
    53         build/*.glg     \
    54         build/*.glo     \
    55         build/*.gls     \
    56         build/*.ist     \
    57         build/*.idx     \
    58         build/*.ilg     \
    59         build/*.ind     \
    60         build/*.log     \
    61         build/*.out     \
    62         build/*.ps      \
    63         build/*.pstex_t \
    64         build/*.tex     \
    65         build/*.toc     \
    66 
     39        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf *.glg *.glo *.gls *.ist *.acn *.acr *.alg \
     40                ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
    6741
    6842# File Dependencies #
    6943
    70 ${DOCUMENT} : build/${basename ${DOCUMENT}}.ps
     44${DOCUMENT} : ${basename ${DOCUMENT}}.ps
    7145        ps2pdf $<
    7246
    73 build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi
     47${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    7448        dvips $< -o $@
    7549
    76 build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle
    77 
    78         @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi                           # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    79         @ echo "Citation lookup"                                                                                        # Must have *.aux file containing citations for bibtex
    80         @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi
    81         @ echo "Citation Pass 1"
    82         @ -${BibTeX} ${basename $@}                                                                                     # Some citations reference others so run steps again to resolve these citations
    83         @ echo "Citation Pass 2"
    84         @ ${LaTeX} ${basename ${notdir $@}}.tex
    85         @ -${BibTeX} ${basename $@}
    86         @ echo "Glossary"
    87         makeglossaries -q -s ${basename $@}.ist ${basename $@}                                          # Make index from *.aux entries and input index at end of document
    88         @ echo ".dvi generation"
    89         @ -build/bump_ver.sh
    90         @ ${LaTeX} ${basename ${notdir $@}}.tex                                                                 # Run again to get index title into table of contents
     50${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
     51                ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle
     52        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
     53        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
     54        # Must have *.aux file containing citations for bibtex
     55        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
     56        -${BibTeX} ${basename $@}
     57        # Some citations reference others so run steps again to resolve these citations
     58        ${LaTeX} ${basename $@}.tex
     59        -${BibTeX} ${basename $@}
     60        # Make index from *.aux entries and input index at end of document
     61        makeglossaries ${basename $@}
     62        #${LaTeX} ${basename $@}.tex
     63        # Run again to get index title into table of contents
     64        ${LaTeX} ${basename $@}.tex
     65        -./bump_ver.sh
     66        ${LaTeX} ${basename $@}.tex
    9167
    9268
     
    9672## Define the default recipes.
    9773
    98 build/%.tex : figures/%.fig
     74%.tex : %.fig
    9975        fig2dev -L eepic $< > $@
    10076
    101 build/%.ps : figures/%.fig
     77%.ps : %.fig
    10278        fig2dev -L ps $< > $@
    10379
    104 build/%.pstex : figures/%.fig
     80%.pstex : %.fig
    10581        fig2dev -L pstex $< > $@
    10682        fig2dev -L pstex_t -p $@ $< > $@_t
Note: See TracChangeset for help on using the changeset viewer.