aboutsummaryrefslogtreecommitdiff
path: root/dynamic.mk
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-06-01 22:20:09 -0300
committerEuAndreh <eu@euandre.org>2022-06-01 22:20:09 -0300
commit94a7f68b3c6727fa1fe1e4f78e84c5cdb7c40644 (patch)
tree958623f7829a791a762ac00862e78146d85e72d7 /dynamic.mk
parentTODOs.md: Add #td-2de2f57c-0773-530f-f6cf-70836080f46f (diff)
downloadeuandre.org-94a7f68b3c6727fa1fe1e4f78e84c5cdb7c40644.tar.gz
euandre.org-94a7f68b3c6727fa1fe1e4f78e84c5cdb7c40644.tar.xz
Generate podcast artifacts in dynamic.mk
Diffstat (limited to '')
-rw-r--r--dynamic.mk17
1 files changed, 13 insertions, 4 deletions
diff --git a/dynamic.mk b/dynamic.mk
index 7510067..9bb1632 100644
--- a/dynamic.mk
+++ b/dynamic.mk
@@ -1,7 +1,8 @@
.POSIX:
+
.SUFFIXES:
-.SUFFIXES: .md .env .html .ly .flac .midi .ogg .pdf
+.SUFFIXES: .md .env .html .ly .flac .midi .ogg .pdf .flac
.md.env:
sh src/development/frontmatter-env.sh < $< > $@
@@ -15,6 +16,9 @@
.midi.ogg:
timidity -Ov $<
+.flac.ogg:
+ ffmpeg -y -i $< -ar 48000 -vn -c:a libvorbis -b:a 320k $@
+
include generated.mk
@@ -28,10 +32,15 @@ lilypond.midi = $(lilypond.ly:.ly=.midi)
lilypond.ogg = $(lilypond.ly:.ly=.ogg)
lilypond = $(lilypond.pdf) $(lilypond.midi) $(lilypond.ogg)
+podcasts.ogg = $(podcasts.flac:.flac=.ogg)
+podcasts = $(podcasts.ogg)
+
ALL = \
- $(pastebins) \
- $(lilypond) \
- $(torrent-files)
+ $(pastebins) \
+ $(lilypond) \
+ $(torrent-files) \
+ $(podcasts)
+
all: $(ALL)
$(torrent-files):