summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 22faeb9..67f46a5 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ BLOG_PREVIEW_MARKER=Recent blog posts
RSS=out/blog/index.xml
OPENRING_FOOTER=tmp/openring.html
-OPENRING_ARGS=-s https://eug-vs.xyz/blog/index.xml -s https://drewdevault.com/blog/index.xml
+OPENRING_URLS=src/urls
BLOG_SOURCES=$(wildcard src/blog/*.md)
SOURCES=$(wildcard src/*.md) $(BLOG_SOURCES)
@@ -96,9 +96,9 @@ tmp/%.xml: tmp/%.content.html tmp/%.meta.title tmp/%.meta.date $(RSS_ITEM_TEMPLA
-e "a <link>$(WEBSITE_URL)/$*.html<\/link>" \
-e '}' $@
-$(OPENRING_FOOTER): $(OPENRING_TEMPLATE)
+$(OPENRING_FOOTER): $(OPENRING_TEMPLATE) $(OPENRING_URLS)
@mkdir -p $(@D)
- openring $(OPENRING_ARGS) < $< > $@
+ openring $$(sed '/^#/d; s/^/-s /' $(OPENRING_URLS)) < $< > $@
out/public/%: src/public/%
@mkdir -p $(@D)