folks,
I would like to re-evaluate or rather re-calculate variable value during
making of target

something like below:

%gmake all RUN_COUNT=4


Makefile:
all:
   ${MAKE} run${RUN_COUNT}

#add code for
#    1. RUN_COUNT = RUN_COUNT -1
#     2. re-evaluate "all" target after updating RUN_COUNT pre-requisite

%.txt:
       touch ${RUN_COUNT}.txt

run%:%.txt
       @ls $^

thanks!
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to