mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-12 07:07:39 +00:00
backward-incompatible change in the 2008 POSIX specification. - Add the .SHELLFLAGS variable so people can choose their own shell flags. - Add tests for this. - Add documentation for this.
26 lines
546 B
Perl
26 lines
546 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Test the behaviour of the .PHONY target.";
|
|
|
|
$details = "";
|
|
|
|
|
|
# Ensure turning on .POSIX enables the -e flag for the shell
|
|
|
|
run_make_test(q!
|
|
.POSIX:
|
|
all: ; @false; true
|
|
!,
|
|
'', "#MAKE#: *** [all] Error 1\n", 512);
|
|
|
|
# User settings must override .POSIX
|
|
|
|
run_make_test(q!
|
|
.SHELLFLAGS = -xc
|
|
.POSIX:
|
|
all: ; @false; true
|
|
!,
|
|
'', "+ false\n+ true\n");
|
|
|
|
# This tells the test driver that the perl test script executed properly.
|
|
1;
|