aboutsummaryrefslogtreecommitdiff
path: root/html/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-03-28 12:58:31 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-03-28 12:58:31 +0200
commit118ba929c81fe3c64f7b5dd87fe63a2dd443ec0f (patch)
treedca4743bcc8682832769fa0c24000b43111a156b /html/Makefile
parent209cf4302bc84c70fa7b1338a2d2dc6e9ec56203 (diff)
downloadmuhqs-game-118ba929c81fe3c64f7b5dd87fe63a2dd443ec0f.tar.gz
muhqs-game-118ba929c81fe3c64f7b5dd87fe63a2dd443ec0f.zip
make html depend on the template and tweak sidebar css
Diffstat (limited to 'html/Makefile')
-rw-r--r--html/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/html/Makefile b/html/Makefile
index 06f711c0..c1cc1b99 100644
--- a/html/Makefile
+++ b/html/Makefile
@@ -1,6 +1,7 @@
VERBOSE ?= @
-PANDOC_FLAGS := -f markdown -s --template=./template.html
+HTML_TEMPLATE := template.html
+PANDOC_FLAGS := -f markdown -s --template=$(HTML_TEMPLATE)
# The full path to the Makefile
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
@@ -86,7 +87,7 @@ $(1)/cards_listing.md: $(CARDS_YAML) $(GENERATE_CARD) $(MAKEFILE_LIST)
done; \
done
-$(1)/cards_listing.html: $(1)/cards_listing.md
+$(1)/cards_listing.html: $(1)/cards_listing.md $(HTML_TEMPLATE)
@echo "building $$@"
@if test \( ! \( -d $$(@D) \) \) ;then mkdir -p $$(@D);fi
$(VERBOSE) pandoc --toc $(PANDOC_FLAGS) $$< -o $$@;
@@ -96,7 +97,7 @@ $(eval $(call generateCardsListing, $(BUILDDIR)/de,de))
$(eval $(call generateCardsListing, $(BUILDDIR)/en,en))
define generateHtml
-$(1)/%.html: %.md $(MAKEFILE_LIST) template.html
+$(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 ]]; \