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:
deepend-tildeclub 2020-04-15 01:57:20 -06:00 committed by GitHub
commit 93e98e4a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 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) \
--from markdown+backtick_code_blocks \ --from markdown+backtick_code_blocks \