diff options
| -rw-r--r-- | html/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/html/Makefile b/html/Makefile index 696006c1..db6c55b8 100644 --- a/html/Makefile +++ b/html/Makefile @@ -1,7 +1,7 @@ VERBOSE ?= @ HTML_TEMPLATE := template.html -PANDOC_FLAGS := -f markdown -N --self-contained --template=$(HTML_TEMPLATE) +PANDOC_FLAGS := -f markdown --self-contained --template=$(HTML_TEMPLATE) # The full path to the Makefile MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) @@ -106,9 +106,9 @@ $(1)/%.html: %.md $(MAKEFILE_LIST) $(HTML_TEMPLATE) @echo "building $$@" @if test \( ! \( -d $$(@D) \) \) ;then mkdir -p $$(@D);fi $(VERBOSE) if [[ $$$$(cat $$< | wc -l) -gt 80 ]]; \ - then pandoc --toc $(PANDOC_FLAGS) $$< -o $$@; \ - else pandoc $(PANDOC_FLAGS) $$< -o $$@; fi + then pandoc --toc $(PANDOC_FLAGS) $(2) $$< -o $$@; \ + else pandoc $(PANDOC_FLAGS) $(2) $$< -o $$@; fi endef -$(eval $(call generateHtml, $(BUILDDIR))) -$(eval $(call generateHtml, $(BUILDDIR)/rules)) +$(eval $(call generateHtml, $(BUILDDIR),)) +$(eval $(call generateHtml, $(BUILDDIR)/rules, -N)) |
