remove some unused Makefile code and optimize some code Signed-off-by: Caoruihong <crh.cao@huawei.com> Change-Id: I1c31d07481bb6aee47b0c51d63d6b68316c38c88