X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=Makefile;h=0797b2db0d4b1eeee7b8470fa171aaf54e42186e;hb=72823b6c34e4e8f875a66a6370771276f28f9946;hp=f1f4d1260148a3ed15637b0d0da477844ae0c729;hpb=2313a178e9ee6c47000abcb095b5536f585bdfc7;p=blog.git diff --git a/Makefile b/Makefile index f1f4d12..0797b2d 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,18 @@ all: update: git pull && $(emacs) -Q --script blog.el "~/www/html" "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)' + +# test will force publishing all files in the porject test: - $(emaca) -Q --script blog.el "test" "true" + $(emacs) -Q --batch -l my-publish.el index.org \ + --eval '(setq debug-on-error t)' \ + --eval '(blog-setup-project-alist "$(BLOGDIR)")' \ + --eval '(org-publish-current-project t)' clean: rm -rf _site/*