1 # $NetBSD: envfirst.mk,v 1.2 2020/07/27 18:57:42 rillig Exp $
3 # The -e option makes environment variables stronger than global variables.
5 .if ${FROM_ENV} != value-from-env
9 # Try to override the variable; this does not have any effect.
10 FROM_ENV= value-from-mk
11 .if ${FROM_ENV} != value-from-env
15 # Try to append to the variable; this also doesn't have any effect.
17 .if ${FROM_ENV} != value-from-env
21 # The default assignment also cannot change the variable.
23 .if ${FROM_ENV} != value-from-env
27 # Neither can the assignment modifiers.
28 .if ${FROM_ENV::=from-condition}
30 .if ${FROM_ENV} != value-from-env
34 # Even .undef doesn't work since it only affects the global context,
35 # which is independent from the environment variables.
37 .if ${FROM_ENV} != value-from-env