summaryrefslogtreecommitdiff
path: root/devel/bmake/files/unit-tests/export.mk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/bmake/files/unit-tests/export.mk')
-rw-r--r--devel/bmake/files/unit-tests/export.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/bmake/files/unit-tests/export.mk b/devel/bmake/files/unit-tests/export.mk
new file mode 100644
index 00000000000..3c67a03a9a0
--- /dev/null
+++ b/devel/bmake/files/unit-tests/export.mk
@@ -0,0 +1,22 @@
+# $Id: export.mk,v 1.1.1.1 2015/05/19 21:36:45 joerg Exp $
+
+UT_TEST=export
+UT_FOO=foo${BAR}
+UT_FU=fubar
+UT_ZOO=hoopie
+UT_NO=all
+# belive it or not, we expect this one to come out with $UT_FU unexpanded.
+UT_DOLLAR= This is $$UT_FU
+
+.export UT_FU UT_FOO
+.export UT_DOLLAR
+# this one will be ignored
+.export .MAKE.PID
+
+BAR=bar is ${UT_FU}
+
+.MAKE.EXPORTED+= UT_ZOO UT_TEST
+
+all:
+ @env | grep '^UT_' | sort
+