aboutsummaryrefslogtreecommitdiff
path: root/html/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-05-18 20:31:14 -0600
committerFlorian Fischer <florian.fischer@muhq.space>2025-05-18 20:35:04 -0600
commitc7ff1c0a664803e9788a73b9edfbe4606aa2eee7 (patch)
tree9a4f2959aa5886c10df80e3a9bdfaebda0893369 /html/Makefile
parenta598e3b037da9f0354a9d306ae3e1dd6ac4ac48c (diff)
downloadmuhqs-game-c7ff1c0a664803e9788a73b9edfbe4606aa2eee7.tar.gz
muhqs-game-c7ff1c0a664803e9788a73b9edfbe4606aa2eee7.zip
add rss feed
Diffstat (limited to 'html/Makefile')
-rw-r--r--html/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/html/Makefile b/html/Makefile
index 49678014..80e36940 100644
--- a/html/Makefile
+++ b/html/Makefile
@@ -66,7 +66,8 @@ FILES_TO_COPY_TARGETS := $(addprefix $(BUILDDIR)/,$(FILES_TO_COPY))
all: $(HTML) $(RULES_HTML) maps misc $(BLOG_POSTS_HTML)
misc: $(BUILDDIR)/latex-build $(BUILDDIR)/cards-data $(FILES_TO_COPY_TARGETS) \
- $(BUILDDIR)/webtools.wasm
+ $(BUILDDIR)/webtools.wasm \
+ $(BUILDDIR)/feed.rss
wasm_exec.js: $(shell go env GOROOT)/lib/wasm/wasm_exec.js
cp $< $@
@@ -137,3 +138,10 @@ endef
$(eval $(call generateHtml, $(BUILDDIR),))
$(eval $(call generateRulesHtml, $(BUILDDIR)/rules, -N))
$(eval $(call generateHtml, $(BUILDDIR)/blog,))
+
+FEEDSRC = feed
+GEN_FEED = $(FEEDSRC)/create_feed.py
+FEEDITEMS = $(wildcard $(FEEDSRC)/items/*)
+
+$(BUILDDIR)/feed.rss: $(FEEDITEMS) $(GEN_FEED)
+ $(VERBOSE)python3 $(GEN_FEED) $(FEEDITEMS) > $@