Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (18 sloc) 0.55 kB
5011983 @abedra initial commit
authored
1 EMACS=emacs
2 ORG_CONFIG_FILE=web.el
3
4 # EMACS_OPTS=--batch --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f publish
5 EMACS_OPTS=--batch -l ~/.emacs.d/init.el --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f publish
6
7 DEST_HOST=''
8 OUTPUT_DIR=output
9
10 all: html
11
12 html:
13 @echo "Generating HTML..."
14 @mkdir -p $(OUTPUT_DIR)
15 @$(EMACS) $(EMACS_OPTS)
16 @echo "HTML generation done"
17
18 clean:
19 @rm -rf $(OUTPUT_DIR)
20 @rm -rf ~/.org-timestamps/demo-site.cache
21 @rm -rf ~/.org-timestamps/demo-static.cache
22
23 upload:
24 @cd $(OUTPUT_DIR) && scp -r . $(DEST_HOST) && cd ..
Something went wrong with that request. Please try again.