diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 44 |
1 files changed, 37 insertions, 7 deletions
@@ -9,6 +9,9 @@ .midi.ogg: timidity -Ov $< +.flac.ogg: + ffmpeg -y -i $< -ar 48000 -vn -c:a libvorbis -b:a 320k $@ + lilypond.ly = \ music/choro-da-saudade.ly \ @@ -24,18 +27,47 @@ lilypond = \ favicons = static/favicon.png favicon.ico +podcasts.flac = \ + resources/podcasts/2020-12-19-a-test-entry.flac +podcasts.ogg = $(podcasts.flac:.flac=.ogg) + +torrents-in = \ + $(podcasts.flac) \ + $(podcasts.ogg) +torrents = $(torrents-in:=.torrent) + +derived-assets = \ + $(lilypond) \ + $(favicons) \ + $(podcasts.ogg) \ + $(torrents) + -all: $(lilypond) $(favicons) +all: public + +jekyll-deps: $(derived-assets) $(lilypond.pdf): $(lilypond.midi) +torrents-files.txt: $(torrents-in) + echo $(torrents-in) | tr ' ' '\n' > $@ + +torrent-files.mk: torrents-files.txt + printf 'torrent-files = \\\n' > $@ + sed -e 's/^/\t/' -e 's/$$/.torrent \\/' < torrents.txt >> $@ + printf '\n\n' >> $@ + awk '{ printf "%s.torrent: %s\n", $$1, $$1 }' torrents.txt >> $@ + +$(torrents): torrent-files.mk + $(MAKE) -f Makefile.dynamic torrents + static/favicon.png: static/favicon.svg - inkscape -o $@ -w 420 -h 420 -b white $? + inkscape -o $@ -w 2048 -h 2048 -b white static/favicon.svg favicon.ico: static/favicon.svg - convert $? $@ + convert static/favicon.svg $@ check: @@ -48,11 +80,9 @@ check: dev-check: check clean: - rm -rf \ - public/ \ - $(lilypond) $(favicons) + rm -rf public/ $(derived-assets) -public: all +public: jekyll-deps jekyll build publish: public |