aboutsummaryrefslogtreecommitdiff
path: root/html/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-12-07 14:37:52 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2021-12-07 14:37:52 +0100
commite7c34f305c80fdc263f62cb6be953333f9cd9a31 (patch)
tree32064caad157855e39e38723e9171a5ed51b600b /html/Makefile
parenta38f2687c1908ddbdae6a0807653084b13a6c8c1 (diff)
downloadmuhqs-game-e7c34f305c80fdc263f62cb6be953333f9cd9a31.tar.gz
muhqs-game-e7c34f305c80fdc263f62cb6be953333f9cd9a31.zip
add blog post about economy pieces
Diffstat (limited to 'html/Makefile')
-rw-r--r--html/Makefile9
1 files changed, 7 insertions, 2 deletions
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,))