summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 5db47e0dd65aaf7f9814c3c82a1be0ffb9de187d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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