aboutsummaryrefslogtreecommitdiff
path: root/v2/dynamic.mk
diff options
context:
space:
mode:
Diffstat (limited to 'v2/dynamic.mk')
-rw-r--r--v2/dynamic.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/v2/dynamic.mk b/v2/dynamic.mk
index e4f349d..ac06c20 100644
--- a/v2/dynamic.mk
+++ b/v2/dynamic.mk
@@ -11,7 +11,9 @@ include generated.mk
.page.md:
+ ln -f $<.i18n $@.i18n
ln -f $< $@
+ touch $@ $@.i18n
.md.content:
awk 'sep >= 2; /^---$$/ {sep++}' < $< > $@
@@ -44,6 +46,7 @@ all: public
$(all-generated.conf) $(all-generated.content): $(non-content)
+$(all-generated.conf) $(pages-mds): i18n-index.sentinel
$(all-generated.conf): src/lib/base.conf src/lib/generated.conf
src/lib/generated.conf: src/bin/conf $(svgs)
@@ -58,6 +61,10 @@ $(all-generated.index): src/lib/generated.conf
$(all-generated.xml):
feed $@
+i18n-index.sentinel: po/i18n.mappings
+ i18n < po/i18n.mappings
+ touch $@
+
clean:
rm -rf \
$(all-generated) $(pages-mds) $(svgs) public/ *.sentinel \
@@ -68,6 +75,7 @@ clean:
src/content/*/*.extrahtml src/content/*/*/*.extrahtml \
src/content/*/*.extrafeeds src/content/*/*/*.extrafeeds \
src/content/*/*.html.*.txt src/content/*/*/*.html.*.txt \
+ src/content/*/*.i18n src/content/*/*/*.i18n \
src/content/*/*.sortdata src/content/*/*/*.sortdata \
src/content/*/feed.*.xml src/content/*/*/feed.*.xml \
src/lib/generated.conf src/lib/generated.*.conf po/*.mo \