make all includes index and html files depend on template and theme

This commit is contained in:
Travis Briggs 2020-04-12 12:39:07 -07:00
parent bddf5ef406
commit 8367e4f17c
1 changed files with 2 additions and 2 deletions

View File

@ -4,13 +4,13 @@ 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 $(DST_HTML_FILES)
all: dep-pandoc $(DST_HTML_FILES) index
index: dep-php index.html
%.html: %.php
php $< > $@
%.html: source/%.md
%.html: source/%.md wiki.tmpl custom.theme
$(info building $@)
@$(PANDOC) \
--template wiki.tmpl \