summaryrefslogtreecommitdiff
path: root/build/pymake/tests/submake.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/submake.mk')
-rw-r--r--build/pymake/tests/submake.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/build/pymake/tests/submake.mk b/build/pymake/tests/submake.mk
new file mode 100644
index 0000000000..41e47134b4
--- /dev/null
+++ b/build/pymake/tests/submake.mk
@@ -0,0 +1,16 @@
+#T commandline: ['CVAR=c val=spac\\ed', 'OVAL=cline', 'OVAL2=cline2']
+
+export EVAR = eval
+override OVAL = makefile
+
+# exporting an override variable doesn't mean it's an override variable
+override OVAL2 = makefile2
+export OVAL2
+
+export ALLVAR
+ALLVAR = general
+all: ALLVAR = allspecific
+
+all:
+ test "$(MAKELEVEL)" = "0"
+ $(MAKE) -f $(TESTPATH)/submake.makefile2