Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/refrat/Makefile

    ra188b16 r9460586  
    77## Define the text source files.
    88
    9 SOURCES = ${addsuffix .tex, \
     9SOURCE = ${addsuffix .tex, \
    1010refrat \
    1111}
     
    3232
    3333clean :
    34         rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t \
    35                 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
     34        rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
    3635
    3736# File Dependencies #
     
    4342        dvips $< -o $@
    4443
    45 ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ${basename ${DOCUMENT}}.bib
    46         # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
     44${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCE} ${basename ${DOCUMENT}}.bbl
     45        ${LaTeX} ${basename $@}.tex
     46        if fgrep -s "Label(s) may have changed" ${basename $@}.log ; then ${LaTeX} ${basename $@}.tex ; fi
     47        makeindex -s indexstyle ${basename $@}.idx
     48        ${LaTeX} ${basename $@}.tex
     49        ${LaTeX} ${basename $@}.tex             % to get index title in toc
     50
     51${basename ${DOCUMENT}}.bbl : ${basename ${DOCUMENT}}.tex ${basename ${DOCUMENT}}.bib
    4752        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
    48         # Must have *.aux file containing citations for bibtex
    4953        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    5054        -${BibTeX} ${basename $@}
    51         # Some citations reference others so run steps again to resolve these citations
    5255        ${LaTeX} ${basename $@}.tex
    5356        -${BibTeX} ${basename $@}
    54         # Make index from *.aux entries and input index at end of document
    55         makeindex -s indexstyle ${basename $@}.idx
    56         ${LaTeX} ${basename $@}.tex
    57         # Run again to get index title into table of contents
    58         ${LaTeX} ${basename $@}.tex
    5957
    6058## Define the default recipes.
Note: See TracChangeset for help on using the changeset viewer.