summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7d3199b173dd4a2ca855e974a7eb6d60f3a5cec1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# What soundfont to use to generate the MIDI file
SOUNDFONT = $(HOME)/soundfonts/FluidR3GM.sf2
# Determine how many processors are present
CPU_CORES=`grep -m1 "cpu cores" /proc/cpuinfo | tr -cd '[:digit:]'`
# The command to run lilypond
LILY_CMD = lilypond -dinclude-settings=settings.ly -ddelete-intermediate-files -drelative-includes -djob-count=$(CPU_CORES)

SUBDIRS := 01-song1 02-song2 03-circus 04-white-noise

all: $(SUBDIRS)
guide: guide.wav
guide.wav: $(addsuffix /guide.wav,$(SUBDIRS))
	sox --combine concatenate $(sort $^) $@
clean:
	- rm guide.wav $(wildcard */guide.wav) $(wildcard $(addsuffix /*.wav,$(SUBDIRS)))
	- rm $(wildcard */*.ogg)

NAME := 01-song1
include rules.mk
NAME := 02-song2
include rules.mk
NAME := 03-circus
include rules.mk
NAME := 04-white-noise
include rules.mk

upload-guide: guide.wav
	scp guide.wav elephly.net:~/elephly.net/secret/band/guide.wav

.PHONY: $(SUBDIRS) clean