Home | History | Annotate | Line # | Download | only in unit-tests
make-exported.mk revision 1.5
      1 # $NetBSD: make-exported.mk,v 1.5 2020/10/05 19:24:29 rillig Exp $
      2 #
      3 # As of 2020-08-09, the code in Var_Export is shared between the .export
      4 # directive and the .MAKE.EXPORTED variable.  This leads to non-obvious
      5 # behavior for certain variable assignments.
      6 
      7 -env=		make-exported-value
      8 -literal=	make-exported-value
      9 UT_VAR=		${UNEXPANDED}
     10 
     11 # The following behavior is probably not intended.
     12 .MAKE.EXPORTED=		-env		# like .export-env
     13 .MAKE.EXPORTED=		-literal UT_VAR	# like .export-literal PATH
     14 
     15 all:
     16 	@env | sort | grep -E '^UT_|make-exported-value' || true
     17