diff options
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile index 6d448b0..838a275 100644 --- a/makefile +++ b/makefile @@ -2,15 +2,16 @@ all: run # content PANDOC ?= pandoc +PANDOC_PREPROC ?= preproc.lua htm_SRC := $(shell find src/inc/ -name '*.htm' -print) md_SRC := $(shell find src/inc/ -name '*.md' -print) SRC := $(htm_SRC) $(md_SRC:%.md=%.htm) DST := site # see https://pandoc.org/MANUAL.html#pandocs-markdown -%.htm: %.md front.lua +%.htm: %.md $(PANDOC_PREPROC) @ echo "<!-- Generated file, you may edit and discard $< :) -->" >$@ - $(PANDOC) -fmarkdown -thtml5 --lua-filter=front.lua $< >>$@ + $(PANDOC) -fmarkdown -thtml5 --lua-filter=$(PANDOC_PREPROC) $< >>$@ # generator ZIG ?= zig |