summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bc761d6..5db47e0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,18 @@
build: $(wildcard entries/*.rst) $(wildcard templates/*.html) entries.json
scripts/build.py
+publish: check-entry-given check-title-given $(ENTRY)
+ scripts/publish "$(ENTRY)" "$(TITLE)"
+
+check-entry-given:
+ifndef ENTRY
+ $(error ENTRY to publish was not given.)
+endif
+
+check-title-given:
+ifndef TITLE
+ $(error TITLE to publish as was not given.)
+endif
+
+
.PHONY: build