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)))"
15 # used for automation on server
21 --eval $(INIT_PACKAGES) \
22 --eval '(setq debug-on-error t)' \
23 -l my-publish.el index.org \
24 --eval '(blog-setup-project-alist "$(BLOGDIR)" "$(OUTDIR)")' \
25 --eval '(org-publish-current-project)'
27 # test will force publishing all files in the porject
30 --eval $(INIT_PACKAGES) \
31 --eval '(setq debug-on-error t)' \
32 -l my-publish.el index.org \
33 --eval '(blog-setup-project-alist "$(BLOGDIR)")' \
34 --eval '(org-publish-current-project t)'