mirror of
https://github.com/mirror/make.git
synced 2025-01-25 20:00:19 +08:00
27 lines
546 B
Plaintext
27 lines
546 B
Plaintext
|
# -*-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;
|