blob: 3ba4a1b1f3079ddc3128399e8a86bb09695b6a70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $NetBSD: directive-unexport.mk,v 1.5 2020/11/03 17:17:31 rillig Exp $
#
# Tests for the .unexport directive.
# TODO: Implementation
# First, export 3 variables.
UT_A= a
UT_B= b
UT_C= c
.export UT_A UT_B UT_C
# Show the exported variables and their values.
.info ${:!env|sort|grep '^UT_'!}
.info ${.MAKE.EXPORTED}
# XXX: Now try to unexport all of them. The variables are still exported
# but not mentioned in .MAKE.EXPORTED anymore.
# See the ":N" in Var_UnExport for the implementation.
*= asterisk
.unexport *
.info ${:!env|sort|grep '^UT_'!}
.info ${.MAKE.EXPORTED}
.unexpor # misspelled
.unexport # oops: missing argument
.unexporting works # oops: misspelled
all:
@:;
|