aboutsummaryrefslogtreecommitdiff
path: root/html/Makefile
diff options
context:
space:
mode:
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 ]]; \