|
From: | Federico Bruni |
Subject: | Re: Makefile and shell loop |
Date: | Fri, 09 Dec 2016 11:08:39 +0100 |
where $(CPU_CORES) is treated as a string, instead of being executed inthe shell:It seems you are using GNU make, so you can writeCPU_CORES = $(shell cat /proc/cpuinfo | grep -m1 "cpu cores" | sed s/".*: "//)
Yep, this evaluates to 4 (correct). Many thanks Johan!
[Prev in Thread] | Current Thread | [Next in Thread] |