diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |