projects
/
blog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add flag force publish
[blog.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
8d478c8
..
b8a0e31
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,13
+1,15
@@
## Makefile to export org in blog file to html
emacs ?= emacs
## Makefile to export org in blog file to html
emacs ?= emacs
-
-OUT_DIR=/Users/peli3/Private/blog/_site
+OUTDIR := ""
+FORCE := "no"
all:
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/*
clean:
rm -rf _site/*