Hi Experts,
I use a make -C option in my top-level Makefile. This calls a leaf
Makefile to build, and checks CONFIG variable. If it not specified, it
assigns a default configuration to the same variable. The snippet is
as follows.
ifeq ("$(CONFIG)","")
$(info CONFIG Not Specified)
CONFIG = $(DEFAULT_CONFIG)
$(info Setting CONFIG to Default : $(CONFIG))
endif
I see that this snipped executes twice in every invocation of Make.
This is undesirable, What am I missing? Is there any alternative? I
want the assignment only once :-)
Regards,
Ajay
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make