envfirst.mk (bmake-20201101) | : | envfirst.mk (bmake-20201117) | ||
---|---|---|---|---|
# $NetBSD: envfirst.mk,v 1.3 2020/10/24 08:46:08 rillig Exp $ | # $NetBSD: envfirst.mk,v 1.4 2020/11/09 20:50:56 rillig Exp $ | |||
# | # | |||
# The -e option makes environment variables stronger than global variables. | # The -e option makes environment variables stronger than global variables. | |||
.MAKEFLAGS: -e | ||||
.if ${FROM_ENV} != value-from-env | .if ${FROM_ENV} != value-from-env | |||
. error ${FROM_ENV} | . error ${FROM_ENV} | |||
.endif | .endif | |||
# Try to override the variable; this does not have any effect. | # Try to override the variable; this does not have any effect. | |||
FROM_ENV= value-from-mk | FROM_ENV= value-from-mk | |||
.if ${FROM_ENV} != value-from-env | .if ${FROM_ENV} != value-from-env | |||
. error ${FROM_ENV} | . error ${FROM_ENV} | |||
.endif | .endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added |