X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=00e53a254449694a1e4242e3243be1482a2c3402;hb=89a798f7b0e604ad3b9796601be0889bad9159ed;hp=f1f4d1260148a3ed15637b0d0da477844ae0c729;hpb=2f98df72c926b951cab2310c1fbf4442d4535bec;p=blog.git diff --git a/Makefile b/Makefile index f1f4d12..00e53a2 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ ## Makefile to export org in blog file to html emacs ?= emacs -OUTDIR := "" +OUTDIR := FORCE := "no" +BLOGDIR := $(PWD) all: $(emacs) -Q --script blog.el $(OUTDIR) $(FORCE) @@ -11,8 +12,17 @@ all: update: git pull && $(emacs) -Q --script blog.el "~/www/html" "true" -test: - $(emaca) -Q --script blog.el "test" "true" +publish: + $(emacs) -Q --batch -l my-publish.el index.org \ + --eval '(setq debug-on-error t)' \ + --eval '(blog-setup-project-alist "$(BLOGDIR)" "$(OUTDIR)")' \ + --eval '(org-publish-current-project)' + +compile: + $(emacs) -Q --batch -l my-publish.el index.org \ + --eval '(setq debug-on-error t)' \ + --eval '(blog-setup-project-alist "$(BLOGDIR)" "$(OUTDIR)")' \ + --eval '(org-publish-current-project t)' clean: rm -rf _site/*