I need to have 
if ( $(findstring build,$(MAKECMDGOALS) or $(findstring
refresh,$(MAKECMDGOALS))
include make.build
endif

here's my example

include gmsl

ifeq ( $(true),$(call or,$(findstring
build,$(MAKECMDGOALS)),$(findstring refresh,$(MAKECMDGOALS))))
TEST := ok
else
TEST := not ok
endif

.PHONY : all build+ldb+ldgdd

all :
        @echo "TEST = '$(TEST)'\n"

build+ldb+ldgdd :
        @echo "TEST = '$(TEST)'\n"

build :
        @echo "TEST = '$(TEST)'\n"
refresh :
        @echo "TEST = '$(TEST)'\n"


Executing as
make build
and get not ok


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to