head	1.2;
access;
symbols
	HEAD-20130225:1.1.1.1 HEAD:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2013.02.25.01.37.17;	author dholland;	state dead;
branches;
next	1.1;

1.1
date	2013.02.25.00.59.50;	author dholland;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2013.02.25.00.59.50;	author dholland;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Remove this copy; it is broken. admins please G/C if possible
@
text
@# $Id: varcmd,v 1.1 2013/02/25 00:59:50 dholland Exp $
#
# Test behaviour of recursive make and vars set on command line.

FU=fu
FOO?=foo
.if !empty(.TARGETS)
TAG=${.TARGETS}
.endif
TAG?=default

all:	one

show:
	@@echo "${TAG} FU=<v>${FU}</v> FOO=<v>${FOO}</v> VAR=<v>${VAR}</v>"

one:	show
	@@${.MAKE} -f ${MAKEFILE} FU=bar FOO=goo two

two:	show
	@@${.MAKE} -f ${MAKEFILE} three

three:	show
	@@${.MAKE} -f ${MAKEFILE} four


.ifmake four
VAR=Internal
.MAKEOVERRIDES+= VAR
.endif

four:	show
	@@${.MAKE} -f ${MAKEFILE} five

M = x
V.y = is y
V.x = is x
V := ${V.$M}
K := ${V}

show-v:
	@@echo '${TAG} v=${V} k=${K}'

five:	show show-v
	@@${.MAKE} -f ${MAKEFILE} M=y six

six:	show-v
	@@${.MAKE} -f ${MAKEFILE} V=override show-v

@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Id: varcmd,v 1.3 2008/05/14 14:27:02 sjg Exp $
@


1.1.1.1
log
@Import a copy of make from HEAD. I'm going to beating this one like a
rented mule. :-)

For various reasons it seems like using othersrc for this particular
hacking run is a better idea than using a branch in src; for one thing
I'm likely to be adding and removing files, and for another it is more
likely that this version will become a guide for making more measured
updates to the master version than that it will eventually itself
become the master version.

@
text
@@
