From b8a48c79300f028ed231766a207c3548769f93e7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 8 Dec 2019 14:00:29 -0500 Subject: [PATCH] move rebuilding index to a separate target --- wiki/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wiki/Makefile b/wiki/Makefile index 7bec8f2..202dbc8 100644 --- a/wiki/Makefile +++ b/wiki/Makefile @@ -1,11 +1,12 @@ 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 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 php $< > $@