blob: 1121d16c212b6232d11610f3c2de1ef08ffc108f (
plain)
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
32
33
34
35
36
37
|
export FOO = PASS_FOO
export FOO2=PASS_FOO2
BAR := PASS_BAR
export BAR
export X Y Z
X := PASS_X
Y := PASS_Y
Z := PASS_Z
NOT_EXPORTED := FAIL
export BAZ = NOT_EXPORTED
unexport BAZ
unexport Y
export Y X
# GNU make 3 and 4 behave differently for this, but it must not mess
# up FOO, BAR, X, Y, and Z.
export FOO BAR X Y Z := FAIL
VARREF:=VAR1 VAR2
export $(VARREF)
VAR1:=PASS_VAR1
VAR2:=PASS_VAR2
test:
echo $$FOO
echo $$FOO2
echo $$BAR
echo $$BAZ
echo $$X
echo $$Y
echo $$Z
echo $$VAR1
echo $$VAR2
echo $$NOT_EXPORTED
|