Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user/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:../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.
     
    4135# Directives #
    4236
    43 .PHONY : all clean                                      # not file names
    44 
    4537all : ${DOCUMENT}
    4638
    4739clean :
    48         @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
     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}
    4942
    5043# File Dependencies #
     
    5447
    5548${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    56         dvips ${Build}/$< -o $@
     49        dvips $< -o $@
    5750
    58 ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
    59                 ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib
     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
    6053        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    61         if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
     54        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
    6255        # Must have *.aux file containing citations for bibtex
    6356        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    64         -${BibTeX} ${Build}/${basename $@}
    65         # Some citations reference others so run again to resolve these citations
     57        -${BibTeX} ${basename $@}
     58        # Some citations reference others so run steps again to resolve these citations
    6659        ${LaTeX} ${basename $@}.tex
    67         -${BibTeX} ${Build}/${basename $@}
     60        -${BibTeX} ${basename $@}
    6861        # Make index from *.aux entries and input index at end of document
    69         makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
    70         # Run again to finish citations
     62        makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
    7163        ${LaTeX} ${basename $@}.tex
    7264        # Run again to get index title into table of contents
    7365        ${LaTeX} ${basename $@}.tex
    7466
     67predefined :
     68        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
     69
    7570## Define the default recipes.
    7671
    77 ${Build}:
    78         mkdir -p ${Build}
    79 
    8072%.tex : %.fig
    81         fig2dev -L eepic $< > ${Build}/$@
     73        fig2dev -L eepic $< > $@
    8274
    8375%.ps : %.fig
    84         fig2dev -L ps $< > ${Build}/$@
     76        fig2dev -L ps $< > $@
    8577
    8678%.pstex : %.fig
    87         fig2dev -L pstex $< > ${Build}/$@
    88         fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
     79        fig2dev -L pstex $< > $@
     80        fig2dev -L pstex_t -p $@ $< > $@_t
    8981
    9082# Local Variables: #
Note: See TracChangeset for help on using the changeset viewer.