From 6ae4f67afc8e804fac17447613ff8f6ee9fe60bf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 1 Jun 2022 19:57:56 -0300 Subject: Start building pastebins with dynamic.mk --- Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3