diff options
Diffstat (limited to '')
-rw-r--r-- | dynamic.mk | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -1,7 +1,7 @@ .POSIX: .SUFFIXES: -.SUFFIXES: .md .env .html +.SUFFIXES: .md .env .html .ly .flac .midi .ogg .pdf .md.env: sh src/development/frontmatter-env.sh < $< > $@ @@ -9,14 +9,34 @@ .md.html: sh src/development/genhtml.sh $< > $@ +.ly.midi: + lilypond -o $* $< + +.midi.ogg: + timidity -Ov $< + include generated.mk pastebins.env = $(pastebins.md:.md=.env) pastebins.html = $(pastebins.md:.md=.html) +pastebins = $(pastebins.env) $(pastebins.html) -all: $(pastebins.env) $(pastebins.html) $(torrent-files) +lilypond.pdf = $(lilypond.ly:.ly=.pdf) +lilypond.midi = $(lilypond.ly:.ly=.midi) +lilypond.ogg = $(lilypond.ly:.ly=.ogg) +lilypond = $(lilypond.pdf) $(lilypond.midi) $(lilypond.ogg) + +ALL = \ + $(pastebins) \ + $(lilypond) \ + $(torrent-files) +all: $(ALL) $(torrent-files): mktorrent -f -v -d -n $@ -o $@ -c '' "$(@D)/`basename $@ .torrent`" + +clean: + rm -f \ + $(ALL) |