Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/proposals/ctordtor/Makefile

    r484ee53 r2298a7b8  
    1 ## Define the configuration variables.
     1## Define the appropriate configuration variables.
    22
    3 Build = build
    4 Figures = figures
    5 Macros = ../../LaTeXmacros
    6 Bib = ../../bibliography
     3MACROS = ../../LaTeXmacros
     4BIB = ../../bibliography
    75
    8 TeXLIB = .:${Macros}:${MACROS}/listings:${MACROS}/enumitem:${Bib}/:
    9 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
     6TeXLIB = .:$(MACROS):$(MACROS)/listings:$(MACROS)/enumitem:$(BIB)/:
     7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
    108BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
    11 
    12 MAKEFLAGS = --no-print-directory # --silent
    13 VPATH = ${Build} ${Figures}
    149
    1510## Define the text source files.
     
    3429
    3530DOCUMENT = ctor.pdf
    36 BASE = ${basename ${DOCUMENT}}
    3731
    3832# Directives #
    39 
    40 .PHONY : all clean                                      # not file names
    4133
    4234all : ${DOCUMENT}
    4335
    4436clean :
    45         @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
     37        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
     38                ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
    4639
    4740# File Dependencies #
    4841
    49 ${DOCUMENT} : ${BASE}.ps
     42${DOCUMENT} : ${basename ${DOCUMENT}}.ps
    5043        ps2pdf $<
    5144
    52 ${BASE}.ps : ${BASE}.dvi
    53         dvips ${Build}/$< -o $@
     45${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
     46        dvips $< -o $@
    5447
    55 ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
    56                 ${Macros}/common.tex ${Macros}/indexstyle ${Bib}/pl.bib | ${Build}
     48${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
     49                $(MACROS)/common.tex $(MACROS)/indexstyle $(BIB)/cfa.bib
    5750        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    58         #if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
     51        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
    5952        # Must have *.aux file containing citations for bibtex
    6053        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    61         -${BibTeX} ${Build}/${basename $@}
    62         # Some citations reference others so run again to resolve these citations
     54        -${BibTeX} ${basename $@}
     55        # Some citations reference others so run steps again to resolve these citations
    6356        ${LaTeX} ${basename $@}.tex
    64         -${BibTeX} ${Build}/${basename $@}
     57        -${BibTeX} ${basename $@}
    6558        # Make index from *.aux entries and input index at end of document
    66         #makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
    67         # Run again to finish citations
     59        makeindex -s $(MACROS)/indexstyle ${basename $@}.idx
    6860        ${LaTeX} ${basename $@}.tex
    6961        # Run again to get index title into table of contents
     
    7567## Define the default recipes.
    7668
    77 ${Build}:
    78         mkdir -p ${Build}
     69%.tex : %.fig
     70        fig2dev -L eepic $< > $@
    7971
    80 %.tex : %.fig | ${Build}
    81         fig2dev -L eepic $< > ${Build}/$@
     72%.ps : %.fig
     73        fig2dev -L ps $< > $@
    8274
    83 %.ps : %.fig | ${Build}
    84         fig2dev -L ps $< > ${Build}/$@
    85 
    86 %.pstex : %.fig | ${Build}
    87         fig2dev -L pstex $< > ${Build}/$@
    88         fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
     75%.pstex : %.fig
     76        fig2dev -L pstex $< > $@
     77        fig2dev -L pstex_t -p $@ $< > $@_t
    8978
    9079# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.