summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-15 12:08:05 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-11-15 12:08:05 +0100
commit780a4ca28e0de9937491b132aa0a6d93030e04d6 (patch)
tree99af359d48e9970a51e58746f312e065640e2ec1 /Makefile
parent238bc21acf4c34b447335a9d33c24b18965a7009 (diff)
downloadkyblo-780a4ca28e0de9937491b132aa0a6d93030e04d6.tar.xz
Add publish script
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
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