targets != find -name '*.md' \! -name 'README.md' \! -name 'template.md' | sed 's/md$$/pdf/'
eng_date != date '+%Y-%m'
heb_date != LC_ALL=he_IL.UTF8 date '+%B %Y'

.PHONY: all
all: $(targets)

%.pdf: %.md
	pandoc --pdf-engine=xelatex $< -o $@

.PHONY: new
new: template.md
	cat template.md | DATE='$(heb_date)' envsubst > '$(eng_date).md'

.PHONY: clean
clean:
	- rm *.pdf