make distcheck work (main feature…).
diff --git a/Makefile.am b/Makefile.am --- a/Makefile.am +++ b/Makefile.am @@ -1,11 +1,20 @@ -vortrag_DATA = vortrag.pdf data.txt -vortrag = vortrag.org +vortrag = vortrag.pdf +vortrag_DATA = vortrag.org data.txt vortragdir = . # dist_pkgdata_DATA = rohdaten -EXTRA_DIST = ${vortrag} ${vortrag_DATA} # ${vortrag} ${dist_pkgdata_DATA} # quelldateien -MOSTLYCLEANFILES = \#* *~ *.bak # kill editor backups +EXTRA_DIST = ${vortrag_DATA} # +MOSTLYCLEANFILES = \\\#* *~ *.bak *.vrb *.bbl *.blg *_flymake.* # kill editor backups and latex stuff +CLEANFILES = ${vortrag} +DISTCLEANFILES = ${CLEANFILES} \\\#* *~ *.bak *.vrb *.bbl *.blg *_flymake.* auto/*el -${vortrag_DATA} : ${vortrag} +all : ${vortrag} + +${vortrag} : ${vortrag_DATA} 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 + if test "$<" != "$(notdir $<)"; then rm -f "$(notdir $<)"; rm -f $(basename $(notdir $<)).tex $(basename $(notdir $<)).tex~ auto/$(basename $(notdir $<)).el; else rm -f $(basename $<).tex $(basename $<).tex~ auto/$(basename $<).el; fi + + + + +