From a58d7a372d5dd306455495ca46a1d126633dd581 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Sun, 24 Mar 2024 21:14:31 +0900 Subject: Add Makefile. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d488246 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +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 -- cgit v1.2.3