DOCUM=present


all:
	make -iB bibtex
	make -iB clean


pdf:
	pdflatex "\def\GWinclMovie{0}\input{present.tex}"
	
	
bibtex:
	make pdf;bibtex $(DOCUM);make pdf;make pdf
	
	
clean:
	ls ${DOCUM}.*|grep -v pdf|grep -v tex|xargs rm	
	
	
finalization:
	make bibtex
	make GSreduction
	make clean
	mv present4w.pdf present.pdf
	
GSreduction:	
	#dle http://milan.kupcevic.net/ghostscript-ps-pdf/
	gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=present4w.pdf present.pdf
	
