lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makefile and shell loop


From: Federico Bruni
Subject: Re: Makefile and shell loop
Date: Fri, 09 Dec 2016 11:08:39 +0100

Il giorno ven 9 dic 2016 alle 10:53, Johan Vromans <address@hidden> 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!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]