通过读取另一个文件的内容,在makefile中创建一个变量(Create a variable in a makefile by reading contents of another file)
如何从makefile创建一个变量,其值将是另一个数据文件的全部内容。
How can I create a variable on-the-fly from makefile, the value of which would be the entire contents of another data file.
最满意答案
我猜你想在Makefile中设置一个变量到另一个文件的内容:
FILE=test.txt VARIABLE=`cat $(FILE)` target: echo $(VARIABLE)I'm guessing that you like to set a variable in your Makefile to the contents of another file:
FILE=test.txt VARIABLE=`cat $(FILE)` target: echo $(VARIABLE)更多推荐
发布评论