1 # $NetBSD: d_cond1.mk,v 1.1 2012/03/17 16:33:14 jruoho Exp $
11 .if
("${TEST_UNAME_S}")
14 .if
(${TEST_UNAME_M} != ${TEST_MACHINE})
17 .if
${TEST_UNAME_M} != ${TEST_MACHINE}
20 .if
!((${TEST_UNAME_M} != ${TEST_MACHINE}) && defined
(X
))
21 Ok
+= !((var
!= var
) && defined
(name
)),
29 .if defined
(notMAKEOBJDIRPREFIX
) || defined
(norMAKEOBJDIR
)
30 .if defined
(notMAKEOBJDIRPREFIX
)
31 o
=${MAKEOBJDIRPREFIX}${__curdir}
39 # repeat the above to check we get the same result
43 .if defined
(notMAKEOBJDIRPREFIX
) || defined
(norMAKEOBJDIR
)
44 .if defined
(notMAKEOBJDIRPREFIX
)
45 o2
=${MAKEOBJDIRPREFIX}${__curdir}
57 .if
${PRIMES
:M
$n} == ""
63 .if
${MACHINE_ARCH} == no-such
66 .if
${MACHINE_ARCH} == not-this
67 .if
${MACHINE_ARCH} == something-else
74 # We expect an extra else warning - we're not skipping here
76 A
=this should be an error
84 # We expect an extra else warning - we are skipping here
86 B
=this should be an error
92 .if
"quoted" == quoted
99 @echo
"$n is $X prime"
100 @echo
"A='$A' B='$B' C='$C' o='$o,${o2}'"
101 @echo
"Passed:${.newline} ${Ok:S/,/${.newline}/}"
102 @echo
"${NUMBERS:@n@$n is ${("${PRIMES
:M
$n}" == ""):?not:} prime${.newline}@}"