Consider this makefile.
========================>>>
gpbr_ha = You
gpbr_lo = See
define _NlssvnUse
val1 := $(gpbr_$1)$(gpbr_$2)
gpbrname := $(gpbr_$1)$(gpbr_$2)
val2 := $(gpbrname)
endef # define _NlssvnUse
tmp := $(eval $(call _NlssvnUse,ha,lo))
all:
@echo "val1=$(val1)"
@echo "gpbrname=$(gpbrname)"
@echo "val2=$(val2)"
========================<<<
The output is:
val1=YouSee
gpbrname=YouSee
val2=
But why val2 gets null value? I just want to use $(gpbrname) in the define
section to represent "YouSee", what's wrong with it?
I'm using make 3.81, both on Windows & Linux.
Thank you in advance, my GNU make guru.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make