2014-09-25 75 views

回答

2

您不能使用make函數來查找文件。但你爲什麼想要?你已經在一個shell中,執行配方。使用make shell函數只是多餘的。

target: 
     command_that_creates_a_file_with_arbitrary_filename 
     newfile=`ls -1t directory_x |head -n 1`; i_want_to_something_with $$newfile 
相關問題