summaryrefslogtreecommitdiff
path: root/unit-tests/sysv
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/sysv')
-rw-r--r--unit-tests/sysv26
1 files changed, 26 insertions, 0 deletions
diff --git a/unit-tests/sysv b/unit-tests/sysv
new file mode 100644
index 0000000..9eedacb
--- /dev/null
+++ b/unit-tests/sysv
@@ -0,0 +1,26 @@
+# $Id: sysv,v 1.1.1.2 2011/06/05 04:23:49 sjg Exp $
+
+FOO ?=
+FOOBAR = $(FOO:=bar)
+
+_this := ${.PARSEDIR}/${.PARSEFILE}
+
+B = /b
+S = /
+FUN = ${B}${S}fun
+SUN = the Sun
+
+# we expect nothing when FOO is empty
+all: foo fun
+
+foo:
+ @echo FOOBAR = $(FOOBAR)
+.if empty(FOO)
+ @FOO="foo fu" ${.MAKE} -f ${_this} foo
+.endif
+
+fun:
+ @echo ${FUN:T}
+ @echo ${FUN:${B}${S}fun=fun}
+ @echo ${FUN:${B}${S}%=%}
+ @echo ${In:L:%=% ${SUN}}