首页 > 系统服务 > 详细

Makefile中怎么使用Shell if判断

时间:2017-08-21 14:33:33      阅读:415      评论:0      收藏:0      [点我收藏+]
/*********************************************************************
 *                Makefile中怎么使用Shell if判断
 * 说明:
 *     譬如可能会在Makfile中需要判断文件、文件夹的存在,使用shell语法
 * 输出一些信息,等等。
 *
 *                                   2017-8-21 深圳 龙华樟坑村 曾剑锋
 ********************************************************************/

一、参考文档:
    1. Test whether a directory exists inside a makefile
        https://stackoverflow.com/questions/20763629/test-whether-a-directory-exists-inside-a-makefile
    
二、解决办法:
    if a shell command, must be in one line, or be on multiple lines using a backslash for line extension. 

 

Makefile中怎么使用Shell if判断

原文:http://www.cnblogs.com/zengjfgit/p/7404057.html

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