REPORT=exam2009 all: pdf move pdf: @echo "----------------------------------------------------------------------" @echo " Compiling content..." @echo "----------------------------------------------------------------------" latex $(REPORT).tex dvips $(REPORT).dvi -q ps2pdf $(REPORT).ps clean: @echo "----------------------------------------------------------------------" @echo " Clean temp files..." @echo "----------------------------------------------------------------------" rm -rf *.aux $(REPORT).idx $(REPORT).log $(REPORT).dvi $(REPORT).ps c move: mv $(REPORT).pdf ../ edit: open -a smultron $(REPORT).tex & launch: all evince ../$(REPORT).pdf