## Makefile to export org in blog file to html
emacs ?= emacs
-
-OUT_DIR=/Users/peli3/Private/blog/_site
+OUTDIR := ""
+FORCE := "no"
all:
- $(emacs) -Q --batch \
- -l ./blog.el \
- index.org \
- --eval '(org-publish-current-project t)'
+ $(emacs) -Q --script blog.el $(OUTDIR) $(FORCE)
+
+# used for automation on server
+update:
+ git pull
+ $(emacs) -Q --script blog.el "~/www/html" "true"
+
+test:
+ $(emaca) -Q --script blog.el "test" "true"
+
clean:
rm -rf _site/*