circus: fill blank before solo.
[music/pretentious.git] / targets.mk
1 # What soundfont to use to generate the MIDI file
2 SOUNDFONT = $(HOME)/soundfonts/FluidR3GM.sf2
3 # Determine how many processors are present
4 CPU_CORES=`grep -m1 "cpu cores" /proc/cpuinfo | tr -cd '[:digit:]'`
5 # The command to run lilypond
6 LILY_CMD = lilypond -ddelete-intermediate-files -drelative-includes -djob-count=$(CPU_CORES)
7
8 parts/%.pdf: parts/%.ly music/%.ly
9 $(LILY_CMD) $<
10
11 %.pdf: %.ly music/*.ly
12 $(LILY_CMD) $<
13
14 %.midi: %.ly music/*.ly
15 $(LILY_CMD) $<
16
17 %.wav: %.midi
18 fluidsynth -r 48000 -F $@ -l -R no -i -n -a alsa $(SOUNDFONT) $<
19
20 %.ogg: %.wav
21 oggenc $<
22
23 wav: $(NAME).wav
24 ogg: $(NAME).ogg
25
26 upload-ogg: ogg
27 scp $(NAME).ogg elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).ogg
28
29 upload-wav: wav
30 scp $(NAME).wav elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).wav