DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#T commandline: ['-w', 'OVAR=oval']

OVAR=mval

all: vartest run-override
	$(MAKE) -f $(TESTPATH)/override-propagate.mk vartest
	@echo TEST-PASS

CLINE := OVAR=oval TESTPATH=$(TESTPATH) NATIVE_TESTPATH=$(NATIVE_TESTPATH)
ifdef __WIN32__
CLINE += __WIN32__=1
endif

SORTED_CLINE := $(subst \,\\,$(sort $(CLINE)))

vartest:
	@echo MAKELEVEL: '$(MAKELEVEL)'
	test '$(value MAKEFLAGS)' = 'w -- $$(MAKEOVERRIDES)'
	test '$(origin MAKEFLAGS)' = 'file'
	test '$(value MAKEOVERRIDES)' = '$${-*-command-variables-*-}'
	test "$(sort $(MAKEOVERRIDES))" = "$(SORTED_CLINE)"
	test '$(origin MAKEOVERRIDES)' = 'environment'
	test '$(origin -*-command-variables-*-)' = 'automatic'
	test "$(origin OVAR)" = "command line"
	test "$(OVAR)" = "oval"

run-override: MAKEOVERRIDES=
run-override:
	test "$(OVAR)" = "oval"
	$(MAKE) -f $(TESTPATH)/override-propagate.mk otest

otest:
	test '$(value MAKEFLAGS)' = 'w'
	test '$(value MAKEOVERRIDES)' = '$${-*-command-variables-*-}'
	test '$(MAKEOVERRIDES)' = ''
	test '$(origin -*-command-variables-*-)' = 'undefined'
	test "$(OVAR)" = "mval"