circus: Add chord track.
[music/pretentious.git] / rules.mk
1 $(NAME): $(NAME)/$(NAME).wav
2
3 $(NAME)/$(NAME).wav: $(NAME)/$(NAME).midi
4 fluidsynth -r 48000 -F $@ -l -R no -i -n -a alsa $(SOUNDFONT) $<
5
6 $(NAME)/parts/%.pdf: $(NAME)/parts/%.ly $(NAME)/music/%.ly
7 $(LILY_CMD) --output=$(dir $@) $<
8
9 $(NAME)/$(NAME).pdf: $(NAME)/$(NAME).ly $(wildcard $(NAME)/music/*.ly)
10 $(LILY_CMD) --output=$(dir $@) $<
11
12 $(NAME)/$(NAME).midi: $(NAME)/$(NAME).ly $(wildcard $(NAME)/music/*.ly)
13 $(LILY_CMD) --output=$(dir $@) $<
14
15 $(NAME)/$(NAME)-klick-mono.wav: $(NAME)/$(NAME).tempo
16 klick -W $@ -f $<
17
18 $(NAME)/$(NAME)-klick.wav: $(NAME)/$(NAME)-klick-mono.wav
19 sox $< $@ channels 2
20
21 $(NAME)/guide.wav: $(NAME)/$(NAME)-klick.wav $(NAME)/$(NAME).wav
22 sox --combine mix $< -v 0.25 $(word 2,$^) $@
23
24 $(NAME)/$(NAME).ogg: $(NAME)/$(NAME).wav
25 oggenc $<
26
27 $(NAME)/upload-ogg: $(NAME)/$(NAME).ogg
28 cd $(NAME) && scp $(NAME).ogg elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).ogg
29
30 $(NAME)/upload-wav: $(NAME)/$(NAME).wav
31 cd $(NAME) && scp $(NAME).wav elephly.net:~/elephly.net/secret/band/$(NAME)/$(NAME).wav