Add flag force publish
[blog.git] / Makefile
index 8d478c8..b8a0e31 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,15 @@
 ## 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)
+
+update:
+       git pull
+       $(emacs) -Q --script blog.el $(OUTDIR)
+
 clean:
        rm -rf _site/*