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