I'm not sure why you need this, can't you use $(TARGET_DEVICE) instead?