all: latex-grundkurs.pdf

images/gnu.pdf: images/gnu.svg
	inkscape --without-gui --export-pdf=$@ $<

# Dirty hack to get the TOC right
latex-grundkurs.pdf: latex-grundkurs.tex latex-grundkurs.toc
	pdflatex $<

latex-grundkurs.toc: latex-grundkurs.tex images/gnu.pdf images/detexify.png images/erstes-dokument.png
	pdflatex $<

clean:
	$(RM) *.log *.toc *.aux *.snm *.nav *.out
	$(RM) images/gnu.pdf

cleanall: clean
	$(RM) latex-grundkurs.pdf
