mirror of https://github.com/tildeclub/site.git
move rebuilding index to a separate target
This commit is contained in:
parent
0c0ce1f5bf
commit
b8a48c7930
|
@ -1,11 +1,12 @@
|
||||||
SRC_MD_FILES != find source -name '*.md'
|
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
|
PANDOC != command -v pandoc 2> /dev/null
|
||||||
PHP != command -v php 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
|
%.html: %.php
|
||||||
php $< > $@
|
php $< > $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue