Reg Makefile : Read file : for loop
I have following code in my
make file : Code:
batch.txt: a) it should read in the file "ids.txt" : which will have all the different file ids, for each id in the file it should do echo "$${file} 1 2 $${file} 0" >> $@ ; \ Making short instead of *.diff.txt now I want to read in the file which has all the ids. I don't know how read in file in Makefiles into array .. Thanks a lot. |
using backticks in Makefile
My solution would go like this:
Code:
ABCFILE=`cat abcfile` Code:
a 1 2 a 0 Hope this helps, Regards, SIMP Linux Archive |
Thanks
Thanks a lot.
The original Makefile is big, but yeap for this snippet of code thats what I wanted. Thanks a lot. -mogra |
All times are GMT -5. The time now is 06:40 AM. |