xref: /freebsd-11-stable/contrib/bmake/unit-tests/sysv.mk (revision 416ba5c74546f32a993436a99516d35008e9f384)
1# $Id: sysv.mk,v 1.2 2014/08/30 22:25:14 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