SHELL=/bin/sh Tex=my BibDir=$(HOME)/wisp/trunk/tex Bib=refs.bib all : dirs tex bib textex warnings done dirs : if [ ! -d $(HOME)/tmp ]; then mkdir $(HOME)/tmp; fi tex : $(Tex).tex pdflatex -output-directory=$(HOME)/tmp $(Tex) bib : - bibtex $(HOME)/tmp/$(Tex) textex : $(Tex).tex pdflatex -output-directory=$(HOME)/tmp $(Tex) pdflatex -output-directory=$(HOME)/tmp $(Tex) warnings : @grep arning $(HOME)/tmp/$(Tex).log | gawk 'BEGIN {print "WARNINGS: "} {printf "!!! "} {print}' done : @printf "\n\n\n==============================================\n" @printf "see output in $(HOME)/tmp/$(Tex).pdf\n" @printf "==============================================\n\n\n"