diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,14 +1,18 @@ -MD_FILES = $(wildcard *.md) $(wildcard */*.md) +MD_FILES = $(shell find . -type f -name '*.md') HTML_FILES = $(patsubst %.md, %.html, $(MD_FILES)) +index.html: $(HTML_FILES) index.sh + sh index.sh $(HTML_FILES) | pandoc --output $@ %.html: %.md pandoc $^ --output $@ + .PHONY: all clean -all: $(HTML_FILES) +all: $(HTML_FILES) index.html clean: rm -rf $(HTML_FILES) + rm index.html |