1 # $NetBSD: envfirst.mk,v 1.5 2021/02/04 21:42:47 rillig Exp $
3 # The -e option makes environment variables stronger than global variables.
7 .if ${FROM_ENV} != value-from-env
11 # Try to override the variable; this does not have any effect.
12 FROM_ENV= value-from-mk
13 .if ${FROM_ENV} != value-from-env
17 # Try to append to the variable; this also doesn't have any effect.
19 .if ${FROM_ENV} != value-from-env
23 # The default assignment also cannot change the variable.
25 .if ${FROM_ENV} != value-from-env
29 # Neither can the assignment modifiers.
30 .if ${FROM_ENV::=from-condition}
32 .if ${FROM_ENV} != value-from-env
36 # Even .undef doesn't work since it only affects the global scope,
37 # which is independent from the environment variables.
39 .if ${FROM_ENV} != value-from-env