A part of my makefile
is as follow:
list1: all
for f in \
`less fetch/list1.txt`; \
do \
...
./$(BIN) $$f & \
...
done
list2: all
for f in \
`less fetch/list2.txt`; \
do \
...
./$(BIN) $$f & \
...
done
fetch/list1.txt
and fetch/list2.txt
contains two lists of files (path+filename), and make list1
and make list2
will respectively go through the 2 lists and run $(BIN)
again the files. This works fine.
The problem is that, I have a couple of file lists as list1
and list2
, and the process of the make is always the same. Does anyone know how to simplify makefile
such that make listA
, make list4
, etc. does what they are supposed to do?