aboutsummaryrefslogtreecommitdiff
path: root/v2/dynamic.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--v2/dynamic.mk16
1 files changed, 12 insertions, 4 deletions
diff --git a/v2/dynamic.mk b/v2/dynamic.mk
index ba07dfe..e4f349d 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
+.SUFFIXES: .page .md .content .conf .html .categoryentry .indexentry .xmlentry .uncolored
.page.md:
@@ -31,6 +31,13 @@ include generated.mk
.md.xmlentry:
xmlentry $< > $@
+.uncolored:
+ printf '%s\n%s\n%s\n' \
+ "`head -n2 $<`" \
+ "`cat src/content/img/dark-mode.xml`" \
+ "`tail -n +3 $<`" \
+ > $@
+
all: public
@@ -39,7 +46,7 @@ all: public
$(all-generated.conf) $(all-generated.content): $(non-content)
$(all-generated.conf): src/lib/base.conf src/lib/generated.conf
-src/lib/generated.conf: src/bin/conf
+src/lib/generated.conf: src/bin/conf $(svgs)
conf > $@
$(all-generated.categories):
@@ -53,8 +60,8 @@ $(all-generated.xml):
clean:
rm -rf \
- $(all-generated) $(pages-mds) public/ *.sentinel generated.mk \
- po/po4a.cfg src/content/.gitignore \
+ $(all-generated) $(pages-mds) $(svgs) public/ *.sentinel \
+ generated.mk po/po4a.cfg src/content/.gitignore \
src/content/*/*.category src/content/*/*/*.category \
src/content/*/*.categorysort src/content/*/*/*.categorysort \
src/content/*/*.html src/content/*/*/*.html \
@@ -73,6 +80,7 @@ content = \
$(all-generated.index) \
$(all-generated.xml) \
$(static-content) \
+ $(svgs) \
containers = \
$(all-generated.snippets) \