1 # $NetBSD: directive-unexport.mk,v 1.5 2020/11/03 17:17:31 rillig Exp $
3 # Tests for the .unexport directive.
7 # First, export 3 variables.
11 .export UT_A UT_B UT_C
13 # Show the exported variables and their values.
14 .info ${:!env|sort|grep '^UT_'!}
15 .info ${.MAKE.EXPORTED}
17 # XXX: Now try to unexport all of them. The variables are still exported
18 # but not mentioned in .MAKE.EXPORTED anymore.
19 # See the ":N" in Var_UnExport for the implementation.
23 .info ${:!env|sort|grep '^UT_'!}
24 .info ${.MAKE.EXPORTED}
27 .unexport # oops: missing argument
28 .unexporting works # oops: misspelled