mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-24 08:13:08 +08:00
18 lines
375 B
Makefile
18 lines
375 B
Makefile
EMACS=emacs
|
|
ORG_CONFIG_FILE=publish_config.el
|
|
EMACS_OPTS=--batch --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish
|
|
TARGET=ls ../*.html* | grep -v "index.html"
|
|
|
|
all: html
|
|
|
|
html:
|
|
@echo "Generating HTML..."
|
|
@$(EMACS) $(EMACS_OPTS)
|
|
@echo "DONE"
|
|
|
|
clean:
|
|
rm ./../org_html/*.html
|
|
rm ~/.org-timestamps/org-pages.cache
|
|
$(TARGET) | xargs -I {} echo {}
|
|
rm ./../*.xml*
|