0
我有一個Makefile是這樣的:如何訪問由配方創建一個文件中的下一個步驟時,文件名是任意
target:
command_that_creates_a_file_with_arbitrary_filename
i_want_to_something_with_the_newest_file_in_directory_x
做FILENAME=$(shell ls -1t directory_x |head -n 1)
會給我上一輪的文件名,如內嵌$(shell ...)