
all:
	@echo "make pdf | source | handout | clean"

pdf:
	pdflatex folien.tex

source:
	source-highlight -f latexcolor demo.py

handout:
	pdfnup --nup 2x2 --outfile handout.pdf folien.pdf

# from http://www.pletscher.org/writings/latex/beamer.php
handout2:
	pdfnup --nup "2x3" --offset ".25cm .25cm" --delta ".25cm .5cm" --frame true --scale 0.9 --outfile handout2.pdf folien.pdf

clean:
	rm -f *.aux *.log *.nav *.out *.snm *.toc *.vrb *~

very-clean:
	rm -f *.aux *.log *.nav *.out *.pdf *.snm *.toc *.vrb handout.pdf handout2.pdf demo.py.tex main.c.tex demo.xml.tex *~
