]> git.donarmstrong.com Git - lilypond.git/commitdiff
set -djob-count= if CPU_COUNT is set
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 26 Nov 2006 17:33:09 +0000 (18:33 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 27 Nov 2006 15:36:22 +0000 (16:36 +0100)
(cherry picked from 47a4a4889364a7c09ba82ab198cf81e20cc8e5bd commit)

make/lilypond-vars.make

index 3c55dbeedc54cfbf82094ebe4702b37f7ffcdca7..201c9984e9a9554ae9d28c8a5e7eb4bee1e9e526 100644 (file)
@@ -24,7 +24,8 @@ CONVERT_LY = $(script-dir)/convert-ly.py
 LILYPOND_BOOK = $(script-dir)/lilypond-book.py
 LILYPOND_BOOK_INCLUDES = -I $(src-dir)/ -I $(outdir) -I $(input-dir) -I $(input-dir)/regression/ -I $(input-dir)/manual/ -I $(input-dir)/tutorial/ -I $(top-build-dir)/mf/$(outconfbase)/  -I $(top-build-dir)/mf/out/
 
-LILYPOND_BOOK_LILYPOND_FLAGS=--backend=eps --formats=ps,png,pdf -dinclude-eps-fonts -dgs-load-fonts --header=texidoc -I $(top-src-dir)/input/manual -dcheck-internal-types -ddump-signatures -danti-alias-factor=2
+LILYPOND_JOBS=$(if $(CPU_COUNT),-djob-count=$(CPU_COUNT),)
+LILYPOND_BOOK_LILYPOND_FLAGS=--backend=eps --formats=ps,png,pdf $(LILYPOND_JOBS) -dinclude-eps-fonts -dgs-load-fonts --header=texidoc -I $(top-src-dir)/input/manual -dcheck-internal-types -ddump-signatures -danti-alias-factor=2
 
 LILYPOND_BOOK_FLAGS = --process="$(LILYPOND_BINARY) $(LILYPOND_BOOK_LILYPOND_FLAGS)"
 TEXINPUTS=$(top-src-dir)/tex/::