aboutsummaryrefslogtreecommitdiff
path: root/dynamic.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dynamic.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/dynamic.mk b/dynamic.mk
index 89791c9..c02d934 100644
--- a/dynamic.mk
+++ b/dynamic.mk
@@ -1,3 +1,13 @@
+.POSIX:
+
+.SUFFIXES: .md .env .html
+
+.md.env:
+ sh src/development/frontmatter-env.sh < $< > $@
+
+.md.html:
+ sh src/development/genhtml.sh $< > $@
+
include files.mk
include deps.mk
@@ -5,3 +15,11 @@ torrents: $(torrent-files)
$(torrent-files): files.mk deps.mk
mktorrent -f -v -d -n $@ -o $@ -c '' "$$(echo $@ | sed 's/\.torrent$$//')"
+
+
+include generated.mk
+
+pastebins.env = $(pastebins.md:.md=.env)
+pastebins.html = $(pastebins.md:.md=.html)
+
+all: $(pastebins.env) $(pastebins.html)