]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/bmake/unit-tests/sysv
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / bmake / unit-tests / sysv
1 # $Id: sysv,v 1.1.1.2 2011/06/05 04:23:49 sjg Exp $
2
3 FOO ?=
4 FOOBAR = $(FOO:=bar)
5
6 _this := ${.PARSEDIR}/${.PARSEFILE}
7
8 B = /b
9 S = /
10 FUN = ${B}${S}fun
11 SUN = the Sun
12
13 # we expect nothing when FOO is empty
14 all: foo fun
15
16 foo:
17         @echo FOOBAR = $(FOOBAR)
18 .if empty(FOO)
19         @FOO="foo fu" ${.MAKE} -f ${_this} foo
20 .endif
21
22 fun:
23         @echo ${FUN:T}
24         @echo ${FUN:${B}${S}fun=fun}
25         @echo ${FUN:${B}${S}%=%}
26         @echo ${In:L:%=% ${SUN}}