diff options
author | EuAndreh <eu@euandre.org> | 2022-06-01 19:57:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-06-01 19:58:49 -0300 |
commit | 6ae4f67afc8e804fac17447613ff8f6ee9fe60bf (patch) | |
tree | 28f58cdcec01af65af2d5b4ffa7a2008e0ee3e1f /Makefile | |
parent | TODOs.md: Add #td-c409cad6-6660-81d8-b7ad-a0d61329ef3c (diff) | |
download | euandre.org-6ae4f67afc8e804fac17447613ff8f6ee9fe60bf.tar.gz euandre.org-6ae4f67afc8e804fac17447613ff8f6ee9fe60bf.tar.xz |
Start building pastebins with dynamic.mk
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -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) |