white noise: change tempo earlier.
[music/pretentious.git] / Makefile
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_USE_CHORDS=$(LILYPOND_USE_CHORDS) lilypond -dinclude-settings=settings.ly -ddelete-intermediate-files -drelative-includes -djob-count=$(CPU_CORES)
7
8 # Append "-chords" to guide tracks when $(LILYPOND_USE_CHORDS) is set
9 ifeq ($(LILYPOND_USE_CHORDS),1)
10 GUIDE_SUFFIX=-chords
11 else
12 GUIDE_SUFFIX=-full
13 endif
14
15 SUBDIRS := 01-song1 02-song2 03-circus 04-white-noise
16
17 all: $(SUBDIRS)
18
19 clean:
20 - rm $(wildcard */guide.wav) $(wildcard $(addsuffix /*.wav,$(SUBDIRS)))
21 - rm $(wildcard */*.ogg)
22
23 NAME := 01-song1
24 include rules.mk
25 NAME := 02-song2
26 include rules.mk
27 NAME := 03-circus
28 include rules.mk
29 NAME := 04-white-noise
30 include rules.mk
31
32 upload: $(addsuffix /upload-ogg, $(SUBDIRS))
33
34 .PHONY: $(SUBDIRS) \
35 $(addsuffix /upload-ogg, $(SUBDIRS)) \
36 $(addsuffix /upload-wav, $(SUBDIRS)) \
37 clean \
38 upload