diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-04-28 16:23:56 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-04-28 16:23:56 +0200 |
| commit | be1e04548e2596478017824aafd2acf3b2a19a61 (patch) | |
| tree | b9f4422165ae25e6eb2e04c36d308166171a95e2 /html | |
| parent | d2eb6fa955f4b5d6a3dfc306ce1e81586baed854 (diff) | |
| download | muhqs-game-be1e04548e2596478017824aafd2acf3b2a19a61.tar.gz muhqs-game-be1e04548e2596478017824aafd2acf3b2a19a61.zip | |
[html/make] only build rules html with numbered sections
Diffstat (limited to 'html')
| -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)) |
