From a1ff79bc4ae215d111ac5716c96517daeb806c22 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 5 Jun 2019 12:02:55 +0300 Subject: Change: build and publish HTML versions of documents --- Makefile | 12 +++++++++--- pandoc.sh | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1f9b223..3bf6fb7 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,16 @@ -.SUFFIXES: .md .pdf +docs = echo.md tutorial.md fable-arch.md +outputs = $(docs:.md=.pdf) $(docs:.md=.html) -all: echo.pdf tutorial.pdf fable-arch.pdf +.SUFFIXES: .md .pdf .html + +all: $(outputs) publish: install -d files - install -m 0644 *.pdf files + install -m 0644 $(outputs) files .md.pdf: ./pandoc.sh $< -o $@ + +.md.html: + ./pandoc.sh $< -o $@ diff --git a/pandoc.sh b/pandoc.sh index 4485584..7372f3f 100755 --- a/pandoc.sh +++ b/pandoc.sh @@ -6,6 +6,8 @@ pandoc \ --filter ./pandoc-fable-filter \ --toc \ --number-sections \ + --standalone \ + --self-contained \ -Vdocumentclass:report \ -Vtitlepage:true \ -Vfontsize:12pt \ -- cgit v1.2.1