diff options
author | EuAndreh <eu@euandre.org> | 2023-04-10 19:20:55 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-10 19:25:33 -0300 |
commit | 39eb7c48b9386a72fefc531ea58c5efef40505d2 (patch) | |
tree | aa1cabde8226548c83eeaa06557a8a483a1c839a /v2/dynamic.mk | |
parent | v2: src/bin/html: Remove empty lines from {pre,post}amble.html after processing (diff) | |
download | euandre.org-39eb7c48b9386a72fefc531ea58c5efef40505d2.tar.gz euandre.org-39eb7c48b9386a72fefc531ea58c5efef40505d2.tar.xz |
v2: Generate sitemap.xml
Diffstat (limited to '')
-rw-r--r-- | v2/dynamic.mk | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/v2/dynamic.mk b/v2/dynamic.mk index ef7d24c..c0a3132 100644 --- a/v2/dynamic.mk +++ b/v2/dynamic.mk @@ -7,7 +7,7 @@ include generated.mk .SUFFIXES: -.SUFFIXES: .page .md .content .conf .html .categoryentry .indexentry .xmlentry .uncolored +.SUFFIXES: .page .md .content .conf .html .categoryentry .indexentry .xmlentry .mapentry .uncolored .page.md: @@ -33,6 +33,9 @@ include generated.mk .md.xmlentry: xmlentry $< > $@ +.md.mapentry: + mapentry $< > $@ + .uncolored: printf '%s\n%s\n%s\n' \ "`head -n2 $<`" \ @@ -71,7 +74,9 @@ i18n-index.sentinel: po/i18n.mappings clean: rm -rf \ $(all-generated) $(pages-mds) $(svgs) public/ *.sentinel \ - generated.mk po/po4a.cfg src/content/.gitignore \ + generated.mk po/po4a.cfg po/*.mo \ + src/lib/generated.conf src/lib/generated.*.conf \ + src/content/.gitignore src/content/sitemap.xml \ src/content/*/*.category src/content/*/*/*.category \ src/content/*/*.categorysort src/content/*/*/*.categorysort \ src/content/*/*.html src/content/*/*/*.html \ @@ -83,7 +88,6 @@ clean: src/content/*/feed.*.xml src/content/*/*/feed.*.xml \ src/content/*/*.md.next src/content/*/*/*.md.next \ src/content/*/*.md.prev src/content/*/*/*.md.prev \ - src/lib/generated.conf src/lib/generated.*.conf po/*.mo \ public: symlink-mappings.sentinel copy-content.sentinel copy-containers.sentinel @@ -94,6 +98,7 @@ content = \ $(all-generated.xml) \ $(static-content) \ $(svgs) \ + src/content/sitemap.xml \ containers = \ $(all-generated.snippets) \ @@ -101,6 +106,9 @@ containers = \ $(all-generated.extrafeeds) \ +src/content/sitemap.xml: $(all-generated.mapentry) + sitemap > $@ + symlink-mappings.sentinel: src/redirect.mappings awk '{print $$2}' src/redirect.mappings | \ xargs dirname | \ |