aboutsummaryrefslogtreecommitdiff
ARTICLES_SOURCE := ~/diary/diary.org
DB_NAME := diary
DB_USER := $(USER)

.PHONY: register-articles

register-articles:
	emacs --script scripts/export-to-html.el $(ARTICLES_SOURCE) ./tmp/diary.json 2>> ./logs/export-to-html.log
	racket scripts/register-articles.rkt --database $(DB_NAME) --user $(DB_USER) tmp/diary.json