diff --git a/Makefile b/Makefile index 72d3d04..b4c1630 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ ISSUES != find issues -type d -DEST_PDF_FILES := $(ISSUES:issues/%=issue-%.pdf) -DEST_HTML_FILES := $(ISSUES:issues/%=issue-%.html) +DEST_PDF_FILES := $(ISSUES:issues/%=dist/issue-%.pdf) +DEST_HTML_FILES := $(ISSUES:issues/%=dist/issue-%.html) PANDOC != command -v pandoc 2> /dev/null all: $(DEST_PDF_FILES) $(DEST_HTML_FILES) -issue-%.pdf: issues/% +dist/issue-%.pdf: issues/% $(PANDOC) \ --file-scope \ --from markdown \ @@ -18,22 +18,24 @@ issue-%.pdf: issues/% --output $@ \ $*.md -issue-%.html: issues/% +dist/issue-%.html: issues/% $(PANDOC) \ --file-scope \ --from markdown \ --to html \ --standalone \ --table-of-contents \ + --lua-filter header-permalinks.lua \ + --lua-filter increase-header-levels.lua \ --metadata title:"tildeverse zine $@" \ - --metadata include-before:"