Christophe Weblog Wiki Code Publications Music
convenience Makefile for generating html from org files
[swankr.git] / Makefile
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