首页 > 其他 > 详细

[quote] How to determine what target is given in Makefile from the make command-line?

时间:2014-01-18 18:40:51      阅读:451      评论:0      收藏:0      [点我收藏+]

 

Yes, you could get the target that is given from the make command-line by using MAKECMDGOALS

for example below,

ifneq "$(MAKECMDGOALS)" "clean"
-include config.mk
endif

 

that is when using  make clean in command-line, config.mk will not be included.

otherwise, like "make" will make config.mk be included.

[quote] How to determine what target is given in Makefile from the make command-line?

原文:http://www.cnblogs.com/lake-of-embedded-system/p/3525079.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!