]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/bmake/unit-tests/sysv.mk
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.git] / contrib / bmake / unit-tests / sysv.mk
1 # $Id: sysv.mk,v 1.2 2014/08/30 22:25:14 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}}