On 6/18/07, sharan basappa <[EMAIL PROTECTED]> wrote:
I have a question regarding the target specific variable :How will a construct clean_dir1: local_objs := $(local_objs) do the work since this will be followed by same rule clean_dir1 : \rm $(local_objs) In this case too the variable assignment will be deferred. Isnt it ?
The expansion of the value being assigned is not deferred, because the assignment was done using ":=". So, the value will be the current value of local_objs at that point in the makefile. What is deferred is the 'availability' of the target-specific assignment: it is only present during the running of the commands for the clean_dir1 target**. Philip Guenther ** ...and for any target which is being rebuilt as a recursive dependency of clean_dir1, of which there are none in this case, because clean_dir1 has no dependencies. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
