2022-07-13 16:26:16 +08:00
|
|
|
EMACS=emacs
|
|
|
|
ORG_CONFIG_FILE=publish_config.el
|
|
|
|
EMACS_OPTS=--batch --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish
|
2022-10-23 13:21:28 +08:00
|
|
|
TARGET=ls ../*.html* | grep -v "index.html"
|
2022-07-13 16:26:16 +08:00
|
|
|
|
|
|
|
all: html
|
|
|
|
|
|
|
|
html:
|
|
|
|
@echo "Generating HTML..."
|
|
|
|
@$(EMACS) $(EMACS_OPTS)
|
2022-09-11 11:20:31 +08:00
|
|
|
@echo "DONE"
|
2022-07-13 16:26:16 +08:00
|
|
|
|
2022-07-13 19:33:17 +08:00
|
|
|
clean:
|
2022-08-09 19:36:10 +08:00
|
|
|
rm ./../org_html/*.html
|
|
|
|
rm ~/.org-timestamps/org-pages.cache
|
2022-10-23 13:21:28 +08:00
|
|
|
$(TARGET) | xargs -I {} echo {}
|
2022-09-11 11:20:31 +08:00
|
|
|
rm ./../*.xml*
|