Lines Matching full:undefined
1 # $NetBSD: cmdline-undefined.mk,v 1.5 2024/04/23 22:51:28 rillig Exp $
3 # Tests for undefined variables in expressions in the command line.
12 @${.MAKE} -f ${MAKEFILE} print-undefined \
13 CMDLINE='Undefined is $${UNDEFINED}.'
20 @${.MAKE} -f ${MAKEFILE} print-undefined \
21 CMDLINE:='Undefined is $${UNDEFINED}.'
24 .if make(print-undefined)
26 .MAKEFLAGS: MAKEFLAGS_ASSIGN='Undefined is $${UNDEFINED}.'
27 .MAKEFLAGS: MAKEFLAGS_SUBST:='Undefined is $${UNDEFINED}.'
29 # expect+2: From the command line: Undefined is .
30 # expect+1: From the command line: Undefined is .
32 # expect+2: From .MAKEFLAGS '=': Undefined is .
33 # expect+1: From .MAKEFLAGS '=': Undefined is .
35 # expect+2: From .MAKEFLAGS ':=': Undefined is .
36 # expect+1: From .MAKEFLAGS ':=': Undefined is .
39 UNDEFINED?= now defined
41 # expect+2: From the command line: Undefined is now defined.
42 # expect+1: From the command line: Undefined is now defined.
44 # expect+2: From .MAKEFLAGS '=': Undefined is now defined.
45 # expect+1: From .MAKEFLAGS '=': Undefined is now defined.
47 # expect+2: From .MAKEFLAGS ':=': Undefined is now defined.
48 # expect+1: From .MAKEFLAGS ':=': Undefined is now defined.
51 print-undefined: