On 11/2/06, Andrew (Cheng-Liang) Hou <[EMAIL PROTECTED]> wrote:
Hi, Can I use ifeq/ifneq in define block? The example like as: define .... ifeq... endif endef
Yes. Try the below with 3.81. $ gmake and $ gmake var=val Ken Smith ---GNUmakefile--- x := y := z := define A x := 1 ifeq ($(var),val) y := 2 endif z := 3 endef $(eval $(A)) $(info x = "$(x)") $(info y = "$(y)") $(info z = "$(z)") _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
