2015-04-20 03:45:54 +00:00
|
|
|
# $Id: sysv.mk,v 1.2 2014/08/30 22:25:14 sjg Exp $
|
2012-06-08 21:57:36 +00:00
|
|
|
|
|
|
|
FOO ?=
|
2015-04-20 03:45:54 +00:00
|
|
|
FOOBAR = ${FOO:=bar}
|
2012-06-08 21:57:36 +00:00
|
|
|
|
|
|
|
_this := ${.PARSEDIR}/${.PARSEFILE}
|
|
|
|
|
|
|
|
B = /b
|
|
|
|
S = /
|
|
|
|
FUN = ${B}${S}fun
|
|
|
|
SUN = the Sun
|
|
|
|
|
|
|
|
# we expect nothing when FOO is empty
|
|
|
|
all: foo fun
|
|
|
|
|
|
|
|
foo:
|
2015-04-20 03:45:54 +00:00
|
|
|
@echo FOOBAR = ${FOOBAR}
|
2012-06-08 21:57:36 +00:00
|
|
|
.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}}
|