summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-02-24 20:31:13 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-02-24 20:31:13 +0100
commit3b1a55647bf4dd4831ac51414a23db043e159e0e (patch)
treede99ca2b25056f1c680e1e29265230e9e4eef96b /Makefile
parent92021c84ce1959dea386049302eae51e95195792 (diff)
Recursive make considered harmful.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 46cf293..d46637d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,26 @@
-SUBDIRS := $(wildcard 0*/)
+# 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 -ddelete-intermediate-files -drelative-includes -djob-count=$(CPU_CORES)
-all : $(SUBDIRS)
+SUBDIRS := 01-song1 02-song2 03-circus 04-white-noise
+all: $(SUBDIRS)
guide: guide.wav
-guide.wav: $(addsuffix guide.wav,$(SUBDIRS)) | all
+guide.wav: $(addsuffix /guide.wav,$(SUBDIRS))
sox --combine concatenate $(sort $^) $@
+clean:
+ - rm guide.wav $(wildcard */guide.wav) $(wildcard $(addsuffix /*.wav,$(SUBDIRS)))
-$(SUBDIRS) :
- $(MAKE) -C $@
+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
-.PHONY : all $(SUBDIRS)
+.PHONY: $(SUBDIRS) clean