diff options
author | rekado <rekado@elephly.net> | 2016-06-03 09:06:32 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2016-06-03 09:06:32 +0200 |
commit | 222848283aa13e2e378223a5514f596c76abac58 (patch) | |
tree | 611ef3a0cda5a10f3f4dea3debc42462992745c8 /targets.mk | |
parent | f8045d7f8a41c9ba7bde5a4f13f94802cd46e773 (diff) |
Use multiple CPU cores for lilypond.
Diffstat (limited to 'targets.mk')
-rw-r--r-- | targets.mk | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,12 @@ +# 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 -djob-count=$(CPU_CORES) %.midi: %.ly parts/*.ly - lilypond $< + $(LILY_CMD) $< %.wav: %.midi fluidsynth -r 48000 -F $@ -l -R no -i -n -a alsa $(SOUNDFONT) $< |