Reproduzierbare Veröffentlichungen

(Arne Babenhauserheide)
2013-12-20: cleanup

cleanup

diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,15 +1,31 @@
+# basic definitions
 vortrag = vortrag.pdf
 vortrag_DATA = vortrag.org data.txt dist-tarball.png
 vortragdir = .
 # dist_pkgdata_DATA = rohdaten 
 EXTRA_DIST = ${vortrag_DATA} ${vortrag}
-MOSTLYCLEANFILES = \\\#* *~ *.bak *.vrb *.bbl *.blg *_flymake.* # kill editor backups and latex stuff
+# kill editor backups and latex stuff
+MOSTLYCLEANFILES = \\\#* *~ *.bak *.vrb *.bbl \
+                   *.blg *_flymake.*
 CLEANFILES = ${vortrag}
-DISTCLEANFILES = ${CLEANFILES} \\\#* *~ *.bak *.vrb *.bbl *.blg *_flymake.* auto/*el
+DISTCLEANFILES = ${CLEANFILES} \\\#* *~ *.bak *.vrb *.bbl \
+                               *.blg *_flymake.* auto/*el
 
 all : ${vortrag}
 
+# emacs org-mode beamer build instructions
 ${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~ auto/$(basename $(notdir $<)).el; else rm -f $(basename $<).tex $(basename $<).tex~ auto/$(basename $<).el; fi
+	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~ \
+                  auto/$(basename $(notdir $<)).el; \
+       else rm -f $(basename $<).tex \
+                  $(basename $<).tex~ \
+                  auto/$(basename $<).el; \
+    fi
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1,13 +1,14 @@
 dnl run `autoreconf -i` to generate a configure script. 
 dnl Then run ./configure to generate a Makefile.
 dnl Finally run make to generate the project.
-
-AC_INIT([Repro Pub], [0.5.0], [arne.babenhauserheide@kit.edu])
+AC_INIT([Repro Pub], [0.5.0], 
+        [arne.babenhauserheide@kit.edu])
 # Check for programs I need for my build
 AC_CANONICAL_TARGET
 AC_ARG_VAR([emacs], [How to call Emacs.])
 AC_CHECK_TARGET_TOOL([emacs], [emacs], [no])
-AS_IF([test "x$emacs" = "xno"], [AC_MSG_ERROR([cannot find Emacs.])])
+AS_IF([test "x$emacs" = "xno"],
+      [AC_MSG_ERROR([cannot find Emacs.])])
 # Run automake
 AM_INIT_AUTOMAKE([foreign])
 AM_MAINTAINER_MODE([enable])