From be1e04548e2596478017824aafd2acf3b2a19a61 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 28 Apr 2021 16:23:56 +0200 Subject: [html/make] only build rules html with numbered sections --- html/Makefile | 10 +++++----- 1 file 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)) -- cgit v1.2.3