summaryrefslogtreecommitdiff
path: root/tests/scripts/variables/GNUMAKEFLAGS
blob: edef66e3d96a7727c11fe9caac001bb87611fba2 (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
#                                                                    -*-perl-*-

$description = "Test proper behavior of GNUMAKEFLAGS";

# Accept flags from GNUMAKEFLAGS as well as MAKEFLAGS
# Results always go in MAKEFLAGS

$extraENV{'GNUMAKEFLAGS'} = '-e -r -R';

run_make_test(q!
all: ; @echo $(MAKEFLAGS)
!,
              '', 'erR');

# Long arguments mean everything is prefixed with "-"

$extraENV{'GNUMAKEFLAGS'} = '--no-print-directory -e -r -R --trace';

run_make_test(q!
all: ; @echo $(MAKEFLAGS)
!,
              '', "#MAKEFILE#:2: target 'all' does not exist
echo erR --trace --no-print-directory
erR --trace --no-print-directory");

1;