summaryrefslogtreecommitdiff
path: root/regress/make-quoting/files/bug2.mk
blob: eef9f2b3d7fa91e38532dcfc0cffb179f823c699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $NetBSD: bug2.mk,v 1.2 2005/08/01 01:02:05 rillig Exp $
#
# This file demonstrates a subtle inconsistency that only occurs when an
# undefined variable is used in another, which is then quoted and copied
# by using the := assignment operator.

.undef UNDEFINED

# this variable references the undefined variable
UNDEF_REF=	${UNDEFINED}

# and the current value is assigned to another variable
UNDEF_VALUE:=	${UNDEF_REF:Q}

all:
	@echo UNDEFINED=${UNDEFINED:Q}""
	@echo UNDEF_REF=${UNDEF_REF:Q}""
	@echo UNDEF_VALUE=${UNDEF_VALUE:Q}""