Makefile中怎么使用Shell if判斷


/*********************************************************************
 *                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. 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM