Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/refrat/Makefile

    r5ff188f r92c0f81  
    1 ## Define the configuration variables.
     1## Define the appropriate configuration variables.
    22
    3 Build = build
    4 Figures = figures
    5 Macros = ../LaTeXmacros
    6 TeXLIB = .:${Macros}:${Build}:../bibliography:
    7 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
     3TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/:
     4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
    85BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
    9 
    10 MAKEFLAGS = --no-print-directory --silent #
    11 VPATH = ${Figures}
    126
    137## Define the text source files.
     
    3731# Directives #
    3832
    39 .PHONY : all clean                                      # not file names
    40 
    4133all : ${DOCUMENT}
    4234
    4335clean :
    44         @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
     36        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
     37                ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
    4538
    4639# File Dependencies #
     
    5043
    5144${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    52         dvips ${Build}/$< -o $@
     45        dvips $< -o $@
    5346
    54 ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
    55                 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib
     47${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
     48                ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
    5649        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    57         if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
     50        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
    5851        # Must have *.aux file containing citations for bibtex
    5952        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    60         -${BibTeX} ${Build}/${basename $@}
    61         # Some citations reference others so run again to resolve these citations
     53        -${BibTeX} ${basename $@}
     54        # Some citations reference others so run steps again to resolve these citations
    6255        ${LaTeX} ${basename $@}.tex
    63         -${BibTeX} ${Build}/${basename $@}
     56        -${BibTeX} ${basename $@}
    6457        # Make index from *.aux entries and input index at end of document
    65         makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
    66         # Run again to finish citations
     58        makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
    6759        ${LaTeX} ${basename $@}.tex
    6860        # Run again to get index title into table of contents
     
    7466## Define the default recipes.
    7567
    76 ${Build}:
    77         mkdir -p ${Build}
    78 
    7968%.tex : %.fig
    80         fig2dev -L eepic $< > ${Build}/$@
     69        fig2dev -L eepic $< > $@
    8170
    8271%.ps : %.fig
    83         fig2dev -L ps $< > ${Build}/$@
     72        fig2dev -L ps $< > $@
    8473
    8574%.pstex : %.fig
    86         fig2dev -L pstex $< > ${Build}/$@
    87         fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
     75        fig2dev -L pstex $< > $@
     76        fig2dev -L pstex_t -p $@ $< > $@_t
    8877
    8978# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.