head	1.1;
access;
symbols
	RELENG_9:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2012.10.03.00.41.46;	author marcel;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2012.10.03.00.41.46;	author svnexp;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2014.03.16.00.01.46;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@SVN rev 241146 on 2012-10-03 00:41:46Z by marcel

Merge bmake-20120831 from vendor/NetBSD/bmake/dist.

Provenance: ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg
@
text
@# $Id: sysv,v 1.1.1.2 2011/06/05 04:23:49 sjg Exp $

FOO ?=
FOOBAR = $(FOO:=bar)

_this := ${.PARSEDIR}/${.PARSEFILE}

B = /b
S = /
FUN = ${B}${S}fun
SUN = the Sun

# we expect nothing when FOO is empty
all: foo fun

foo:
	@@echo FOOBAR = $(FOOBAR)
.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}}
@


1.1.2.1
log
@file sysv was added on branch RELENG_9 on 2014-03-16 00:01:46 +0000
@
text
@d1 26
@


1.1.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263212
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 26
# $Id: sysv,v 1.1.1.2 2011/06/05 04:23:49 sjg Exp $

FOO ?=
FOOBAR = $(FOO:=bar)

_this := ${.PARSEDIR}/${.PARSEFILE}

B = /b
S = /
FUN = ${B}${S}fun
SUN = the Sun

# we expect nothing when FOO is empty
all: foo fun

foo:
	@@echo FOOBAR = $(FOOBAR)
.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}}
@


