Src=nara2008 Out=./$(Src) all : files dirs tex bib tex tex done one : files dirs tex done done : @printf "\n\n\n==============================================\n" @printf "see output in $(Out).pdf\n" @printf "==============================================\n\n\n" @printf "\n\nWarnings (may be none):\n\n" grep arning $(Out).log dirs : - [ ! -d "$(HOME)/tmp" ] && mkdir $(HOME)/tmp files : cp *.eps ~/tmp tex : $(Out).pdf $(Out).pdf : $(Out).ps ps2pdf $< $(Out).ps : $(Out).dvi dvips $< -o $@ $(Out).dvi : $(Src).tex - latex $(Src) bib : - bibtex $(Src) view : $(Out).pdf xpdf $< & clean: rm *.aux *.ps *.dvi *.log *.bbl *.blg