From: Nicholas Clark Date: Thu, 27 Feb 2014 09:20:38 +0000 (+0100) Subject: make_ext.pl should validate exactly which clean targets it can be used for. X-Git-Tag: v5.19.10~90^2~9 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/3fbff3ec9773b4a8b8ccfc97a1829b2435cc1a7d make_ext.pl should validate exactly which clean targets it can be used for. Previously it would accept anything matching /clean$/. Now we check for the 4 names that we know the top level Makefile defines. --- diff --git a/make_ext.pl b/make_ext.pl index 98ed3cc..0c877fc 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -124,7 +124,7 @@ my @make = split ' ', $1 || $Config{make} || $ENV{MAKE}; if ($target eq '') { die "make_ext: no make target specified (eg all or clean)\n"; -} elsif ($target !~ /(?:^all|clean)$/) { +} elsif ($target !~ /^(?:all|clean|distclean|realclean|veryclean)$/) { # for the time being we are strict about what make_ext is used for die "$0: unknown make target '$target'\n"; }