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