diff options
author | EuAndreh <eu@euandre.org> | 2022-09-02 12:34:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-09-02 12:34:10 -0300 |
commit | b7f4fe9d45b6869263fec955fe11d411e43ce69b (patch) | |
tree | 2d64dfa5f1cf8568bc27b8c0c7e2df4cbe929af7 /v2/dynamic.mk | |
parent | v2/src/development/genhtml.sh: Use `htmlesc` over `html` (diff) | |
download | euandre.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.mk | 12 |
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 \ |