hughes@azroth.csee.usf.edu (Ken Hughes) (04/16/91)
I tried posting this back when the discussion was on but our outgoing news was down, so bear with me.... I have a Makefile which works pretty well for persisting until the cross-references are right. It also works with bibtex for detecting when that should be made. This is a stripped down version; mine also makes the index files and spell checks but it should be easy for anyone to expand on this. -------cut-here--------- # # Makefile for LaTeX # .SUFFIXES: .SUFFIXES: .tex~ .dvi .aux .bbl .bib $(SUFFIXES) # SUBSTRING=[^a-zA-Z0-9]*\\([a-zA-Z0-9]*\\). .bbl.bib: bibtex $* # .tex.dvi: -@TTY=`tty` ; \ OUT=`latex $< | tee $$TTY | egrep 'Rerun|No.file' ` ; \ while [ `echo -n $$OUT | wc -c` != 0 ] ; do \ for i in $$OUT ; do \ case $$i in \ *bbl*) \ make `echo $$i | sed -e \ "s/$(SUBSTRING)bbl.*/\1.bbl/"` ;\ ;; \ *) ;; \ esac ;\ done ;\ OUT=`latex $< | tee $$TTY | egrep 'Rerun|No.file' ` ; \ done # -------cut-here--------- -------------------------------------------------------------------- Ken Hughes | (hughes@sol.csee.usf.edu) | "..... corn nuts ........." FT-Ph D student, PT-ex-sysadm | Dept of Comp Sci and Eng | .... _Heathers_ University of South Florida | --------------------------------------------------------------------