aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4773052..fd63df5 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ torrents-in = \
torrents = $(torrents-in:=.torrent)
derived-assets = \
+ $(pastebins) \
$(lilypond) \
$(favicons) \
$(podcasts.ogg) \
@@ -50,8 +51,21 @@ derived-assets = \
TODOs.html \
-all: public
+all: public dynamic
+
+dynamic: generated.mk
+ $(MAKE) -f dynamic.mk all
+
+JEKYLL_COMPAT: deps.mk files.mk
+ sh src/development/JEKYLL_COMPAT/copy-content.sh
+
+generated.mk: ALWAYS JEKYLL_COMPAT
+ sh src/development/dynmake.sh > $@
+
+# NOOP rule to assert that the targets that depend on it are
+# always considered stale.
+ALWAYS:
$(lilypond.pdf): $(lilypond.midi)
@@ -70,6 +84,7 @@ deps.mk: torrent-files.txt
awk '{ printf "%s.torrent: %s\n", $$1, $$1 }' torrent-files.txt >> $@
$(torrents): files.mk deps.mk
+ $(MAKE) generated.mk
$(MAKE) -f dynamic.mk torrents
static/lord-favicon.png: static/lord-favicon.svg
@@ -100,7 +115,9 @@ clean:
rm -rf \
public/ .jekyll-cache \
$(derived-assets) \
- torrent-files.txt files.mk deps.mk
+ torrent-files.txt files.mk deps.mk \
+ src/content/ generated.mk \
+
JEKYLL = JEKYLL_ENV=production jekyll
public: $(derived-assets)