mirror of https://github.com/tildeclub/site.git
make all includes index and html files depend on template and theme
This commit is contained in:
parent
bddf5ef406
commit
8367e4f17c
|
@ -4,13 +4,13 @@ DST_HTML_FILES := $(SRC_MD_FILES:source/%.md=%.html)
|
||||||
PANDOC != command -v pandoc 2> /dev/null
|
PANDOC != command -v pandoc 2> /dev/null
|
||||||
PHP != command -v php 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
|
index: dep-php index.html
|
||||||
%.html: %.php
|
%.html: %.php
|
||||||
php $< > $@
|
php $< > $@
|
||||||
|
|
||||||
%.html: source/%.md
|
%.html: source/%.md wiki.tmpl custom.theme
|
||||||
$(info building $@)
|
$(info building $@)
|
||||||
@$(PANDOC) \
|
@$(PANDOC) \
|
||||||
--template wiki.tmpl \
|
--template wiki.tmpl \
|
||||||
|
|
Loading…
Reference in New Issue