Christophe Weblog Wiki Code Publications Music
convenience Makefile for generating html from org files
authorChristophe Rhodes <csr21@cantab.net>
Fri, 1 Oct 2010 18:20:07 +0000 (19:20 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Fri, 1 Oct 2010 18:20:07 +0000 (19:20 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..fe09927
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+WEBFILES=README.html BUGS.html TODO.html
+
+web: $(WEBFILES)
+
+README.html: README
+       emacs --batch --visit README  --eval '(org-export-as-html nil)'
+
+%.html: %.org
+       emacs --batch --visit $^ --eval '(org-export-as-html nil)'
+
+clean:
+       -rm $(WEBFILES)
+
+.PHONY: web clean