aboutsummaryrefslogtreecommitdiff
path: root/v2/dynamic.mk
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-09-02 12:34:10 -0300
committerEuAndreh <eu@euandre.org>2022-09-02 12:34:10 -0300
commitb7f4fe9d45b6869263fec955fe11d411e43ce69b (patch)
tree2d64dfa5f1cf8568bc27b8c0c7e2df4cbe929af7 /v2/dynamic.mk
parentv2/src/development/genhtml.sh: Use `htmlesc` over `html` (diff)
downloadeuandre.org-b7f4fe9d45b6869263fec955fe11d411e43ce69b.tar.gz
euandre.org-b7f4fe9d45b6869263fec955fe11d411e43ce69b.tar.xz
Generate .entry-content and .entry-env when building HTML
Diffstat (limited to 'v2/dynamic.mk')
-rw-r--r--v2/dynamic.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/v2/dynamic.mk b/v2/dynamic.mk
index 09edfa7..01b8917 100644
--- a/v2/dynamic.mk
+++ b/v2/dynamic.mk
@@ -11,7 +11,7 @@ include generated.mk
.SUFFIXES:
-.SUFFIXES: .md .html .in
+.SUFFIXES: .md .html .in .entry-content .entry-env
.in:
@@ -24,6 +24,12 @@ include generated.mk
.md.html:
sh src/development/genhtml.sh $< > $@
+.md.entry-content:
+ extract -t content < $? > $@
+
+.md.entry-env:
+ extract -t env < $? > $@
+
pastebins.html = $(pastebins.md:.md=.html)
@@ -49,8 +55,8 @@ collections = pastebins
clean:
for c in $(collections); do \
rm -f \
- src/content/$$c/*.txt \
- src/content/$$c/*.atom; \
+ src/content/$$c/*.entry-* \
+ src/content/$$c/*.txt; \
done
rm -rf \
$(ALL) generated.mk src/development/config.env \