my code : include gmsl ifeq ($(true),$(call or,$(findstring build,$(MAKECMDGOALS)),$(findstring refresh,$(MAKECMDGOALS)))) TEST := ok else TEST := not ok endif
.PHONY : all build+ldb+ldgdd build refresh all : @echo "TEST = '$(TEST)'\n" build+ldb+ldgdd : @echo "TEST = '$(TEST)'\n" build : @echo "TEST = '$(TEST)'\n" refresh : @echo "TEST = '$(TEST)'\n" execute happy 24: M -f z build TEST = 'not ok' M is aliased to make 3.81 > -----Original Message----- > From: John Graham-Cumming [mailto:[EMAIL PROTECTED] On > Behalf Of John Graham-Cumming > Sent: Tuesday, March 28, 2006 3:23 PM > To: PATTON, BILLY (SBCSI) > Cc: help-make@gnu.org > Subject: Re: How to use gmsl > > > PATTON, BILLY (SBCSI) wrote: > > include gmsl > > > > ifeq ( $(true),$(call or,$(findstring > > build,$(MAKECMDGOALS)),$(findstring refresh,$(MAKECMDGOALS)))) > > TEST := ok > > else > > TEST := not ok > > endif > > There should not be a space before $(true). > > John. > > _______________________________________________ Help-make mailing list Help-make@gnu.org http://lists.gnu.org/mailman/listinfo/help-make