Ignore:
Timestamp:
Feb 1, 2018, 5:40:01 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
0188a0bc
Parents:
d0a045c7 (diff), 33c0ce8 (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:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/thierry_delisle/Makefile

    rd0a045c7 r85521c7  
    1 ## Define the appropriate configuration variables.
     1## Define the configuration variables.
    22
    3 TeXLIB = .:./style:./text:./annex:./build:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:/usr/local/bibliographies:
    4 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=build -interaction=nonstopmode
     3Build = build
     4Figures = figures
     5Macros = ../../LaTeXmacros
     6TeXLIB = .:style:text:annex:${Macros}:${Build}:../../bibliography:
     7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
    58BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex -terse
     9
     10MAKEFLAGS = --no-print-directory --silent #
     11VPATH = ${Build} ${Figures}
    612
    713## Define the text source files.
     
    2430}
    2531
    26 FIGURES = ${addprefix build/, ${addsuffix .tex, \
    27         monitor \
    28         ext_monitor \
    29         int_monitor \
    30         dependency \
    31 }}
     32FIGURES = ${addsuffix .tex, \
     33monitor \
     34ext_monitor \
     35int_monitor \
     36dependency \
     37}
    3238
    33 PICTURES = ${addprefix build/, ${addsuffix .pstex, \
    34         system \
    35         monitor_structs \
    36 }}
     39PICTURES = ${addsuffix .pstex, \
     40system \
     41monitor_structs \
     42}
    3743
    3844PROGRAMS = ${addsuffix .tex, \
     
    4854# Directives #
    4955
     56.PHONY : all clean                                      # not file names
     57
    5058all : ${DOCUMENT}
    5159
    5260clean :
    53         @rm -fv ${DOCUMENT} \
    54         build/*.acn     \
    55         build/*.acr     \
    56         build/*.alg     \
    57         build/*.aux     \
    58         build/*.bbl     \
    59         build/*.blg     \
    60         build/*.brf     \
    61         build/*.cf      \
    62         build/*.dvi     \
    63         build/*.glg     \
    64         build/*.glo     \
    65         build/*.gls     \
    66         build/*.ist     \
    67         build/*.idx     \
    68         build/*.ilg     \
    69         build/*.ind     \
    70         build/*.log     \
    71         build/*.out     \
    72         build/*.ps      \
    73         build/*.pstex   \
    74         build/*.pstex_t \
    75         build/*.tex     \
    76         build/*.toc     \
    77         build/*.lof     \
    78         build/*.lol     \
    79         build/*.lot     \
    80         figures/*.tex   \
    81         *.png           \
    82 
     61        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
    8362
    8463# File Dependencies #
    8564
    86 ${DOCUMENT} : build/${basename ${DOCUMENT}}.ps
     65${DOCUMENT} : ${basename ${DOCUMENT}}.ps
    8766        ps2pdf $<
    8867
    89 build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi
    90         dvips $< -o $@
     68${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
     69        dvips ${Build}/$< -o $@
    9170
    92 build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle annex/local.bib
    93 
    94         @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi                           # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    95         @ echo "Citation lookup"                                                                                        # Must have *.aux file containing citations for bibtex
    96         @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi
    97         @ echo "Citation Pass 1"
    98         @ -${BibTeX} ${basename $@}                                                                                     # Some citations reference others so run steps again to resolve these citations
    99         @ echo "Citation Pass 2"
    100         @ ${LaTeX} ${basename ${notdir $@}}.tex
    101         @ -${BibTeX} ${basename $@}
    102         @ echo "Glossary"
    103         @ makeglossaries -q -s ${basename $@}.ist ${basename $@}                                                # Make index from *.aux entries and input index at end of document
    104         @ echo ".dvi generation"
    105         @ -build/bump_ver.sh
    106         @ ${LaTeX} ${basename ${notdir $@}}.tex                                                                 # Run again to get index title into table of contents
    107 
    108 
    109 predefined :
    110         sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
     71${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
     72                ${Macros}/common.tex ${Macros}/indexstyle annex/local.bib ../../bibliography/pl.bib
     73        # Must have *.aux file containing citations for bibtex
     74        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
     75        -${BibTeX} ${Build}/${basename $@}
     76        # Some citations reference others so run again to resolve these citations
     77        ${LaTeX} ${basename $@}.tex
     78        -${BibTeX} ${Build}/${basename $@}
     79        # Make index from *.aux entries and input index at end of document
     80        makeglossaries -q -s ${Build}/${basename $@}.ist ${Build}/${basename $@}
     81        -version.sh
     82        # Run again to finish citations
     83        ${LaTeX} ${basename $@}.tex
    11184
    11285## Define the default recipes.
    11386
    114 build/%.tex : figures/%.fig
    115         fig2dev -L eepic $< > $@
     87${Build}:
     88        mkdir -p ${Build}
    11689
    117 build/%.ps : figures/%.fig
    118         fig2dev -L ps $< > $@
     90%.tex : %.fig
     91        fig2dev -L eepic $< > ${Build}/$@
    11992
    120 build/%.pstex : figures/%.fig
    121         fig2dev -L pstex $< > $@
    122         fig2dev -L pstex_t -p $@ $< > $@_t
     93%.ps : %.fig
     94        fig2dev -L ps $< > ${Build}/$@
     95
     96%.pstex : %.fig
     97        fig2dev -L pstex $< > ${Build}/$@
     98        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
    12399
    124100#-----------------------------------------------------------------------------------
     
    145121                        "\end{document}" > $@
    146122
    147 
    148 
    149123# Local Variables: #
    150124# compile-command: "make" #
Note: See TracChangeset for help on using the changeset viewer.