aboutsummaryrefslogblamecommitdiff
path: root/dynamic.mk
blob: 7510067f02f8589964244a6131b7cf33e13a865f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

       
          
                                                   






                                                       





                         


                    
 

                                          
                                              
 









                                                           


                                                                           



                      
.POSIX:

.SUFFIXES:
.SUFFIXES: .md .env .html .ly .flac .midi .ogg .pdf

.md.env:
	sh src/development/frontmatter-env.sh < $< > $@

.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)

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)