michael@0: # -*- Mode: Makefile -*- michael@0: michael@0: $(info MAKEFLAGS = '$(MAKEFLAGS)') michael@0: $(info MAKE = '$(MAKE)') michael@0: $(info value MAKE = "$(value MAKE)") michael@0: michael@0: shellresult := $(shell echo -n $$EVAR) michael@0: ifneq ($(shellresult),eval) michael@0: $(error EVAR should be eval, is instead $(shellresult)) michael@0: endif michael@0: michael@0: all: michael@0: env michael@0: test "$(MAKELEVEL)" = "1" michael@0: echo "value(MAKE)" '$(value MAKE)' michael@0: echo "value(MAKE_COMMAND)" = '$(value MAKE_COMMAND)' michael@0: test "$(origin CVAR)" = "command line" michael@0: test "$(CVAR)" = "c val=spac\ed" michael@0: test "$(origin EVAR)" = "environment" michael@0: test "$(EVAR)" = "eval" michael@0: test "$(OVAL)" = "cline" michael@0: test "$(OVAL2)" = "cline2" michael@0: test "$(ALLVAR)" = "allspecific" michael@0: @echo TEST-PASS