#--------------------------------------------------------------------------- # $Id: Makefile,v 1.1.1.1 2002/06/07 23:57:59 tjn Exp $ # # This doesn't deal with the figures, especially the 'html' target, # see comments for details. #--------------------------------------------------------------------------- # full filename (eg. hello.tex) DOC=example-ols.tex # base of the filename (eg. hello) DOCBASE=example-ols PWD=`pwd` default: -@echo "Try using 'make ps' or 'make pdf'" ps: $(DOC) -@echo "Processing the LaTeX document ($(DOC))" -@latex $(DOC) -@latex $(DOC) -@bibtex $(DOCBASE) -@latex $(DOC) -@latex $(DOC) -@dvips $(DOCBASE).dvi -o $(DOCBASE).ps -@echo "Created PS file ($(DOCBASE).ps)" pdf: $(DOC) -@echo "Processing the LaTeX document ($(DOC))" pdflatex $(DOCBASE) bibtex $(DOCBASE) pdflatex $(DOCBASE) pdflatex $(DOCBASE) -@echo "Created PDF ($(DOCBASE).pdf)" -@echo " NOTE: The 'pdflatex' cmd sometimes has problems with figures" # BIB2HTML: convert the BibTeX file to an HTML file # TTH: converts the LaTeX file to an HTML page, # (convert the figs to *.jpg, use -e2 make them inline) # (-e1 makes a link to this file, and w/o either would just link to *.eps) html: $(DOC) -@echo "Processing the LaTeX document ($(DOC))" -@latex $(DOC) -@latex $(DOC) -@bibtex $(DOCBASE) -@latex $(DOC) -@latex $(DOC) bib2html -s plain $(PWD)/$(DOCBASE).bib $(DOCBASE)-bib.html tth -e2 $(DOCBASE) -@echo "Created HTML ($(DOCBASE).html), etc." -@echo " NOTE: There are some problems with my HTML target...good luck!" clean: rm -f *.aux *.bbl *.blg *.log *.dvi *.idx *.out cleanall: clean rm -f *.ps *.pdf *.html