I have following code in my
make file :
Code:
batch.txt:
rm -f $@ ;
for file in $(wildcard t*_diff.txt); do \
echo "$${file} 1 2 $${file} 0" >> $@ ; \
done ;
My goal is to modify this code,
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.