2005-12-13 22:44:17 +08:00
|
|
|
# -*-perl-*-
|
|
|
|
|
2004-05-17 03:16:52 +08:00
|
|
|
$description = "The following tests rules without Commands or Dependencies.";
|
1999-09-14 10:03:19 +08:00
|
|
|
|
|
|
|
# Create a file named "clean". This is the same name as the target clean
|
2004-05-17 03:16:52 +08:00
|
|
|
# and tricks the target into thinking that it is up to date. (Unless you
|
1999-09-14 10:03:19 +08:00
|
|
|
# use the .PHONY target.
|
2016-12-24 02:33:58 +08:00
|
|
|
touch('clean');
|
1999-09-14 10:03:19 +08:00
|
|
|
|
2016-12-24 02:33:58 +08:00
|
|
|
run_make_test(qq!
|
|
|
|
.IGNORE :
|
|
|
|
clean: FORCE ; $CMD_rmfile clean
|
|
|
|
FORCE:
|
|
|
|
!,
|
|
|
|
'', "$CMD_rmfile clean");
|
1999-09-14 10:03:19 +08:00
|
|
|
|
2016-12-24 02:33:58 +08:00
|
|
|
rmfiles('clean');
|
1999-09-14 10:03:19 +08:00
|
|
|
|
|
|
|
1;
|