mirror of https://github.com/tildeclub/site.git
Merge pull request #13 from audiodude/wiki-makefile
'make all' includes index and html files depend on template and theme
This commit is contained in:
commit
93e98e4a79
|
@ -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) \
|
||||
--from markdown+backtick_code_blocks \
|
||||
|
|
Loading…
Reference in New Issue