mirror of https://github.com/tildeclub/site.git
fix rebuilding php every time
This commit is contained in:
parent
bec4176ccc
commit
8decf76a47
|
@ -4,11 +4,9 @@ DST_HTML_FILES := index.html $(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 dep-php $(DST_HTML_FILES)
|
||||||
|
|
||||||
index.html: index.php
|
%.html: %.php
|
||||||
|
|
||||||
%.html: %.php dep-php
|
|
||||||
php $< > $@
|
php $< > $@
|
||||||
|
|
||||||
%.html: source/%.md
|
%.html: source/%.md
|
||||||
|
|
Loading…
Reference in New Issue