vortrag_DATA = vortrag.pdf data.txt
vortrag = vortrag.org
vortragdir = .
# dist_pkgdata_DATA = rohdaten 
EXTRA_DIST = ${vortrag} ${vortrag_DATA} # ${vortrag} ${dist_pkgdata_DATA} # quelldateien
MOSTLYCLEANFILES = \#* *~ *.bak # kill editor backups

${vortrag_DATA} : ${vortrag}
	if test "$<" != "$(notdir $<)"; then cp -u "$<" "$(notdir $<)"; fi
	echo yes | @emacs@ --batch --load "~/.emacs" --visit "$(notdir $<)" --funcall org-beamer-export-to-pdf
	if test "$<" != "$(notdir $<)"; then rm -f "$(notdir $<)"; rm -f $(basename $(notdir $<)).tex $(basename $(notdir $<)).tex~; else rm -f $(basename $<).tex $(basename $<).tex~; fi