码迷,mamicode.com
首页 > 系统相关 > 详细

Makefile中怎么使用Shell if判断

时间:2017-08-21 14:46:06      阅读:272      评论:0      收藏:0      [点我收藏+]

标签:等等   .com   文件   lin   file   ***   tip   sts   rect   

/*********************************************************************
 *                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判断

标签:等等   .com   文件   lin   file   ***   tip   sts   rect   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!