[PATCH PM-QA] Improve make build system.