diff options
author | EuAndreh <eu@euandre.org> | 2022-01-11 15:37:21 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-01-11 15:37:21 -0300 |
commit | 9010d27237df0dc4a3b321fa4856486e2640c4b5 (patch) | |
tree | c55aece0d42ffdad10605b16644d20f54af254d2 /Makefile | |
parent | _plugins/generate-favicon.rb: Delete file, generate files in Makefile (diff) | |
download | euandre.org-9010d27237df0dc4a3b321fa4856486e2640c4b5.tar.gz euandre.org-9010d27237df0dc4a3b321fa4856486e2640c4b5.tar.xz |
_plugins/generate-media-files.rb: Remove in favor of Makefile
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 |