mirror of
https://github.com/mirror/make.git
synced 2025-01-08 19:30:26 +08:00
45bf0e3a67
* tests/test_driver.pl: Save error strings for later comparison. * tests/run_make_tests.pl: Create portable commands for later use. * tests/*: Use these new variables.
20 lines
484 B
Perl
20 lines
484 B
Perl
# -*-perl-*-
|
|
|
|
$description = "The following tests rules without Commands or Dependencies.";
|
|
|
|
# Create a file named "clean". This is the same name as the target clean
|
|
# and tricks the target into thinking that it is up to date. (Unless you
|
|
# use the .PHONY target.
|
|
touch('clean');
|
|
|
|
run_make_test(qq!
|
|
.IGNORE :
|
|
clean: FORCE ; $CMD_rmfile clean
|
|
FORCE:
|
|
!,
|
|
'', "$CMD_rmfile clean");
|
|
|
|
rmfiles('clean');
|
|
|
|
1;
|