1# $Id: sysv,v 1.1.1.2 2011/06/05 04:23:49 sjg Exp $
2
3FOO ?=
4FOOBAR = $(FOO:=bar)
5
6_this := ${.PARSEDIR}/${.PARSEFILE}
7
8B = /b
9S = /
10FUN = ${B}${S}fun
11SUN = the Sun
12
13# we expect nothing when FOO is empty
14all: foo fun
15
16foo:
17	@echo FOOBAR = $(FOOBAR)
18.if empty(FOO)
19	@FOO="foo fu" ${.MAKE} -f ${_this} foo
20.endif
21
22fun:
23	@echo ${FUN:T}
24	@echo ${FUN:${B}${S}fun=fun}
25	@echo ${FUN:${B}${S}%=%}
26	@echo ${In:L:%=% ${SUN}}
27