From 414b5d761fd526eb73150b1579fc7e45aad138b0 Mon Sep 17 00:00:00 2001 From: Tobias Leich Date: Sat, 30 Aug 2014 21:19:39 +0200 Subject: get rid of "no rule to make target `clean`, Error 2" This annoyed me for a long time now... Everytime I've seen it I thought: Ohh noes! Configure failed! But when you carried on reading it stated that everything is well and that you can now `make`. --- Configure.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Configure.pl') diff --git a/Configure.pl b/Configure.pl index e8010f2..82227ff 100644 --- a/Configure.pl +++ b/Configure.pl @@ -267,9 +267,11 @@ MAIN: { unless ($options{'no-clean'}) { no warnings; print "Cleaning up ...\n"; - if (open my $CLEAN, '-|', "$make configclean") { - my @slurp = <$CLEAN>; - close($CLEAN); + for my $p ('', map { "-$_" } @prefixes) { + if (open my $CLEAN, '-|', "$make configclean$p") { + my @slurp = <$CLEAN>; + close($CLEAN); + } } } -- cgit v1.1