On 01/08/2010 10:58 AM, Dave Plater wrote:
On 01/08/2010 10:23 AM, Ludwig Nussel wrote:
Dave Plater wrote:
I'm fine tuning the build of lilypond and they (lilypond devs) recommend building the documentation, which takes a long time, using "make -jx CPU_COUNT=x doc" where x is the cpu core count +1. When building online the "%{?jobs:-j%{jobs}}" macro expands to -j 4 but not being sure of these things, when I use just plain "make -j x" on my box it doesn't speed up the documentation build much whereas if I add "-j 3 CPU_COUNT=3" the build time is reduced from one and a half hours to half an hour approximately. Is there a way of duplicating this on line?
%jobs is set to the number of parallel compile jobs to use. It's independent of the number of actual cpus as %jobs is set when iceream is used too. That CPU_COUNT thing is a special feature of your Makefile I guess. You better don't use %jobs there as icecream is of no use for building the documentation.
I'll play with the CPU_COUNT= option, is there a way of getting the jobs= number to use in the spec file, that you know of?
I used "%__make %{?jobs:-j%{jobs}} CPU_COUNT=%{jobs} doc" and it works like a charm. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org