X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=Makefile;h=b8a0e31d121356ebb3c79457b4525250c6c63458;hb=a1e8b148970121c8f944f5abb2b85cca59090366;hp=8d478c8edc02ff4a800b17d58d2b8285ea9e2309;hpb=97a6efb026d66df8024ebbbf9450f2f721d2d7e8;p=blog.git diff --git a/Makefile b/Makefile index 8d478c8..b8a0e31 100644 --- 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/*