summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-05-06 00:37:00 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-05-06 00:37:00 +0200
commita448bd31dfb56a78631b2e7617226e5bd5cf3e26 (patch)
tree00cd7c40a5d97ad849efe4b1e63c1269c794c55a /Makefile
parent2b49deef6c83856533b764cf7c7fac3cbcbaea3a (diff)
Makefile: Append "-chords" or "-full" to audio/MIDI files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 99a515a..b8392f7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,13 @@ CPU_CORES=`grep -m1 "cpu cores" /proc/cpuinfo | tr -cd '[:digit:]'`
# The command to run lilypond
LILY_CMD = LILYPOND_USE_CHORDS=$(LILYPOND_USE_CHORDS) lilypond -dinclude-settings=settings.ly -ddelete-intermediate-files -drelative-includes -djob-count=$(CPU_CORES)
+# Append "-chords" to guide tracks when $(LILYPOND_USE_CHORDS) is set
+ifeq ($(LILYPOND_USE_CHORDS),1)
+ GUIDE_SUFFIX=-chords
+else
+ GUIDE_SUFFIX=-full
+endif
+
SUBDIRS := 01-song1 02-song2 03-circus 04-white-noise
all: $(SUBDIRS)