Re: Makefile and shell loop

2016-12-09 Thread Federico Bruni
Il giorno ven 9 dic 2016 alle 10:53, Johan Vromans 
 ha scritto:
 where $(CPU_CORES) is treated as a string, instead of being 
executed in

 the shell:


It seems you are using GNU make, so you can write

  CPU_CORES = $(shell cat /proc/cpuinfo | grep -m1 "cpu cores" | sed 
s/".*: "//)


Yep, this evaluates to 4 (correct).
Many thanks Johan!


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Makefile and shell loop

2016-12-09 Thread Johan Vromans
On Fri, 09 Dec 2016 10:30:32 +0100, Federico Bruni 
wrote:

> where $(CPU_CORES) is treated as a string, instead of being executed in 
> the shell:

It seems you are using GNU make, so you can write

  CPU_CORES = $(shell cat /proc/cpuinfo | grep -m1 "cpu cores" | sed s/".*: "//)

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user