build/pymake/tests/submake.makefile2
author Simon Sapin <simon.sapin@exyr.org>
Tue, 06 Jun 2017 08:13:39 -0700
changeset 1150023 c6508a9f0fb5f1648b37f299be7f3e481cb26c31
parent 104089 77c30c1388eeb1e75984a10a4ee9fd0773ffa961
permissions -rw-r--r--
servo: Merge #17185 - Fix some "unused" warnings (from servo:unused); r=emilio Source-Repo: https://github.com/servo/servo Source-Revision: 87005a0df33531995635728989c929572de429e7

# -*- Mode: Makefile -*-

$(info MAKEFLAGS = '$(MAKEFLAGS)')
$(info MAKE = '$(MAKE)')
$(info value MAKE = "$(value MAKE)")

shellresult := $(shell echo -n $$EVAR)
ifneq ($(shellresult),eval)
$(error EVAR should be eval, is instead $(shellresult))
endif

all:
	env
	test "$(MAKELEVEL)" = "1"
	echo "value(MAKE)" '$(value MAKE)'
	echo "value(MAKE_COMMAND)" = '$(value MAKE_COMMAND)'
	test "$(origin CVAR)" = "command line"
	test "$(CVAR)" = "c val=spac\ed"
	test "$(origin EVAR)" = "environment"
	test "$(EVAR)" = "eval"
	test "$(OVAL)" = "cline"
	test "$(OVAL2)" = "cline2"
	test "$(ALLVAR)" = "allspecific"
	@echo TEST-PASS