summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-14 13:29:45 -0300
committerEuAndreh <eu@euandre.org>2024-11-14 13:29:45 -0300
commit9fb312b59886f079e2bef276b08891b725b413d7 (patch)
treeba03cd50d73c21a8c78e0c6902b0c4607b083167 /Makefile
parentMakefile: Tweak "run" target docstring (diff)
downloadpapo.im-9fb312b59886f079e2bef276b08891b725b413d7.tar.gz
papo.im-9fb312b59886f079e2bef276b08891b725b413d7.tar.xz
Makefile: Adapt code for mkwb-html subcommand
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 987f098..7fa49f8 100644
--- a/Makefile
+++ b/Makefile
@@ -82,6 +82,7 @@ derived-assets = \
$(sources.snippets) \
$(sources.conf) \
src/global.conf \
+ src/combined.conf \
$(articles.indexentry) \
$(articles.feedentry) \
$(articles.sortdata) \
@@ -106,17 +107,17 @@ $(sources.html): src/headers.txt
src/global.conf: src/base.conf
mkwb conf src/base.conf > $@
+src/combined.conf: src/base.conf src/global.conf
+ cat src/base.conf src/global.conf > $@
+
src/content/atom.xml src/content/blog.html: $(articles.sortdata) \
- src/base.conf src/global.conf
+ src/combined.conf
src/content/atom.xml: $(articles.feedentry)
- mkwb feed src/base.conf src/global.conf $(articles.sortdata) > $@
+ mkwb feed src/combined.conf $(articles.sortdata) > $@
src/content/blog.html: $(articles.indexentry) src/content/blog.htmlbody
- mkwb indexbody $*.conf $(articles.sortdata) | cat $*.htmlbody - > $@-t
- mkwb html $@-t > $@
- rm -f $@-t
-
+ mkwb indexbody $*.conf $(articles.sortdata) | mkwb html $*.htmlbody > $@
check-unit: