move rebuilding index to a separate target

This commit is contained in:
Ben Harris 2019-12-08 14:00:29 -05:00
parent 0c0ce1f5bf
commit b8a48c7930
1 changed files with 3 additions and 2 deletions

View File

@ -1,11 +1,12 @@
SRC_MD_FILES != find source -name '*.md'
DST_HTML_FILES := index.html $(SRC_MD_FILES:source/%.md=%.html)
DST_HTML_FILES := $(SRC_MD_FILES:source/%.md=%.html)
PANDOC != command -v pandoc 2> /dev/null
PHP != command -v php 2> /dev/null
all: dep-pandoc dep-php $(DST_HTML_FILES)
all: dep-pandoc $(DST_HTML_FILES)
index: dep-php index.html
%.html: %.php
php $< > $@