diff --git a/targets/Makerules b/targets/Makerules
index 5387a3b3353eeb143d60200bb0cae14018c16a30..af2c491d1d924076a3a3c22bf76212d1c0065013 100644
--- a/targets/Makerules
+++ b/targets/Makerules
@@ -12,7 +12,7 @@ OBJS_DIR := $(PWD)/objs
 SVN_REV := $(shell svnversion -n .)
 DATE_REV := $(shell date '+%F %T')
 
-NUM_CORES=$(shell cat /proc/cpuinfo | grep processor | wc -l)
+NUM_CORES:=$(shell cat /proc/cpuinfo | grep processor | wc -l)
 
 # Check for libraries and export cflags/linker variables
 NETTLE_FOUND    = $(shell if pkg-config --exists nettle; then echo "1" ; else echo "0"; fi)