1 ## Makefile to export org in blog file to html
8 # To color the code block, install htmlize package
9 INIT_PACKAGES = "(progn \
11 (add-to-list 'package-archives '(\"melpa\" . \"http://melpa.org/packages/\")) \
12 (package-initialize) \
13 (unless (package-installed-p 'htmlize) (package-refresh-contents) (package-install 'htmlize)))"
16 $(emacs) -Q --script blog.el $(OUTDIR) $(FORCE)
18 # used for automation on server
20 git pull && $(emacs) -Q --script blog.el "~/www/html" "true"
24 --eval $(INIT_PACKAGES) \
25 --eval '(setq debug-on-error t)' \
26 -l my-publish.el index.org \
27 --eval '(blog-setup-project-alist "$(BLOGDIR)" "$(OUTDIR)")' \
28 --eval '(org-publish-current-project)'
30 # test will force publishing all files in the porject
33 --eval $(INIT_PACKAGES) \
34 --eval '(setq debug-on-error t)' \
35 -l my-publish.el index.org \
36 --eval '(blog-setup-project-alist "$(BLOGDIR)")' \
37 --eval '(org-publish-current-project t)'