mirror of
https://github.com/mirror/make.git
synced 2025-01-10 20:30:20 +08:00
25 lines
628 B
Perl
25 lines
628 B
Perl
# -*-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=none --trace=dir';
|
|
|
|
run_make_test(q!
|
|
all: ; @echo $(MAKEFLAGS)
|
|
!,
|
|
'', 'erR --trace=none --trace=dir --trace=none --trace=dir --no-print-directory');
|
|
|
|
1;
|