2013-05-13 06:48:04 +00:00
|
|
|
# -*-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)
|
|
|
|
!,
|
2013-05-22 11:51:46 +00:00
|
|
|
'', 'erR');
|
2013-05-13 06:48:04 +00:00
|
|
|
|
|
|
|
# Long arguments mean everything is prefixed with "-"
|
|
|
|
|
2013-09-12 08:07:52 +00:00
|
|
|
$extraENV{'GNUMAKEFLAGS'} = '--no-print-directory -e -r -R --trace';
|
2013-05-13 06:48:04 +00:00
|
|
|
|
|
|
|
run_make_test(q!
|
|
|
|
all: ; @echo $(MAKEFLAGS)
|
|
|
|
!,
|
2013-09-12 08:07:52 +00:00
|
|
|
'', "#MAKEFILE#:2: target 'all' does not exist
|
|
|
|
echo erR --trace --no-print-directory
|
|
|
|
erR --trace --no-print-directory");
|
2013-05-13 06:48:04 +00:00
|
|
|
|
|
|
|
1;
|