# "$Id: Makefile,v 1.1.1.1 2002/06/07 23:57:59 tjn Exp $ # # "Makefile" # # This doesn't deal with the figures, especially the 'html' target, # see comments for details. # full filename (eg. hello.tex) DOC=sci02-oscar.tex # base of the filename (eg. hello) DOCBASE=sci02-oscar IEEEDOC=sci02-oscar-ieee.tex IEEEDOCBASE=sci02-oscar-ieee 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) 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: bib2html -s plain $(PWD)/$(DOCBASE).bib $(DOCBASE)-bib.html tth -e2 $(DOCBASE) clean: rm -f *.aux *.bbl *.blg *.log *.dvi *.idx *.out cleanall: clean rm -f *.ps *.pdf *.html