From e7c34f305c80fdc263f62cb6be953333f9cd9a31 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 7 Dec 2021 14:37:52 +0100 Subject: add blog post about economy pieces --- html/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'html/Makefile') diff --git a/html/Makefile b/html/Makefile index 28de1982..6df8a547 100644 --- a/html/Makefile +++ b/html/Makefile @@ -40,7 +40,11 @@ LANG_CARDS_LISTINGS := $(foreach card_listing, $(DE_CARDS_LISTING) $(EN_CARDS_LI SITES := index.md rules.md cards.md maps.md tools.html decks.md HTML := $(addprefix $(BUILDDIR)/,$(SITES:.md=.html)) -VPATH := $(RULES_ROOT) +BLOG_SOURCEDIR := $(HTML_ROOT)/blog +BLOG_POSTS_MD := $(shell find $(BLOG_SOURCEDIR) -mindepth 1 -type f -name "*.md" -printf "%f\n") +BLOG_POSTS_HTML := $(addprefix $(BUILDDIR)/blog/,$(BLOG_POSTS_MD:.md=.html)) + +VPATH := $(RULES_ROOT) $(BLOG_SOURCEDIR) # Create a list of yaml card definitions CARDS_YAML := $(foreach dir,$(SETS_SOURCEDIRS),$(wildcard $(dir)/*.yml)) @@ -48,7 +52,7 @@ CARDS_YAML := $(foreach dir,$(SETS_SOURCEDIRS),$(wildcard $(dir)/*.yml)) MAKEFILE_LIST := Makefile .PHONY: all clean maps -all: $(HTML) $(RULES_HTML) maps $(BUILDDIR)/latex-build $(BUILDDIR)/cards-data +all: $(HTML) $(RULES_HTML) maps $(BUILDDIR)/latex-build $(BUILDDIR)/cards-data $(BLOG_POSTS_HTML) clean: rm -rf $(BUILDDIR) @@ -107,3 +111,4 @@ endef $(eval $(call generateHtml, $(BUILDDIR),)) $(eval $(call generateHtml, $(BUILDDIR)/rules, -N)) +$(eval $(call generateHtml, $(BUILDDIR)/blog,)) -- cgit v1.2.3