[build] use macro control target build