aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-06-01 20:33:47 -0300
committerEuAndreh <eu@euandre.org>2022-06-01 20:33:51 -0300
commitd42d6fc45f50a09d36d912c0d68ee0794ac1e520 (patch)
treec1d2dfc0dccd5438892b83e4099868552f1a917d /Makefile
parentsrc/development/frontmatter-env.sh: Use single quote for heredoc marker (diff)
downloadeuandre.org-d42d6fc45f50a09d36d912c0d68ee0794ac1e520.tar.gz
euandre.org-d42d6fc45f50a09d36d912c0d68ee0794ac1e520.tar.xz
Move files.mk and deps.mk into generated.mk
Make torrent files dynamic instead of listed in Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 3 insertions, 37 deletions
diff --git a/Makefile b/Makefile
index fd63df5..9624c56 100644
--- a/Makefile
+++ b/Makefile
@@ -28,26 +28,11 @@ lilypond = \
favicons = static/lord-favicon.png static/lord-favicon.ico favicon.ico
-podcasts.flac = \
- resources/podcasts/2020-12-19-a-test-entry.flac
-podcasts.ogg = $(podcasts.flac:.flac=.ogg)
-
-screencasts.webm = \
- resources/screencasts/2021-02-07-autoqemu-automate-installation-and-ssh-setup-of-iso-os-images.webm
-
-torrents-in = \
- $(podcasts.flac) \
- $(podcasts.ogg) \
- $(screencasts.webm)
-
-torrents = $(torrents-in:=.torrent)
-
derived-assets = \
$(pastebins) \
$(lilypond) \
$(favicons) \
$(podcasts.ogg) \
- $(torrents) \
TODOs.html \
@@ -57,36 +42,18 @@ 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 > $@
+JEKYLL_COMPAT:
+ sh src/development/JEKYLL_COMPAT/copy-content.sh
+
# NOOP rule to assert that the targets that depend on it are
# always considered stale.
ALWAYS:
$(lilypond.pdf): $(lilypond.midi)
-
-torrent-files.txt: $(torrents-in)
- echo $(torrents-in) | tr ' ' '\n' > $@
-
-files.mk: torrent-files.txt
- printf '' > $@
- printf 'torrent-files = \\\n' >> $@
- sed -e 's/^/\t/' -e 's/$$/.torrent \\/' < torrent-files.txt >> $@
- printf '\n\n' >> $@
-
-deps.mk: torrent-files.txt
- printf '' > $@
- 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
inkscape -o $@ -w 2048 -h 2048 -b white static/lord-favicon.svg
@@ -115,7 +82,6 @@ clean:
rm -rf \
public/ .jekyll-cache \
$(derived-assets) \
- torrent-files.txt files.mk deps.mk \
src/content/ generated.mk \