Handle multiple environment using multiple target and macro