Add chord track (enable with LILYPOND_USE_CHORDS).
[music/pretentious.git] / Makefile
index d46637d4556bff52944063189e9cf21c91875d3f..c9db328d635f19839c27c3e096812cd8b785be62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ 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)
+LILY_CMD = LILYPOND_USE_CHORDS=$(LILYPOND_USE_CHORDS) lilypond -dinclude-settings=settings.ly -ddelete-intermediate-files -drelative-includes -djob-count=$(CPU_CORES)
 
 SUBDIRS := 01-song1 02-song2 03-circus 04-white-noise
 
@@ -13,6 +13,7 @@ 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
@@ -23,4 +24,7 @@ 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