Makefile: Append "-chords" or "-full" to audio/MIDI files.
[music/pretentious.git] / Makefile
index 99a515abaf3cd02c8ba8014f04a578272618ca42..b8392f7f7b4323acc679d6edf4e23c50305c4353 100644 (file)
--- 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)