From 31293b63cd701ee172bd3fee1738095f4461f9ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= <cnkgndgn@gmail.com>
Date: Tue, 19 Apr 2016 14:17:23 +0200
Subject: [PATCH] dist: make: iotlab: use target specific var assignment

---
 dist/testbed-support/Makefile.iotlab | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dist/testbed-support/Makefile.iotlab b/dist/testbed-support/Makefile.iotlab
index 8e121a6aa5..bd2e902f98 100644
--- a/dist/testbed-support/Makefile.iotlab
+++ b/dist/testbed-support/Makefile.iotlab
@@ -81,7 +81,4 @@ iotlab-term: iotlab-check-exp
 	RIOT_LOG-$(IOTLAB_EXP_NAME)-$(IOTLAB_EXP_ID), \
 	serial_aggregator -i $(IOTLAB_EXP_ID) $(NODES_PARAM_BASE))'"
 
-iotlab-check-exp:
-ifndef IOTLAB_SITE
-	$(eval IOTLAB_SITE := $(shell experiment-cli get -ri -i $(IOTLAB_EXP_ID) | sed -n 4p | cut -d\" -f2))
-endif
+iotlab-check-exp: IOTLAB_SITE ?= $(shell experiment-cli get -ri -i $(IOTLAB_EXP_ID) | sed -n 4p | cut -d\" -f2)
-- 
GitLab