diff options
author | Tobias Leich <email@froggs.de> | 2014-08-30 21:19:39 +0200 |
---|---|---|
committer | Tobias Leich <email@froggs.de> | 2014-08-30 21:19:39 +0200 |
commit | 414b5d761fd526eb73150b1579fc7e45aad138b0 (patch) | |
tree | b14da4eb15b318dc2a6ac00abd20b8da6c2f04cb /Configure.pl | |
parent | 8c8b8a7f3ae8ff46e25789cf7e4cf986df47a353 (diff) |
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`.
Diffstat (limited to 'Configure.pl')
-rw-r--r-- | Configure.pl | 8 |
1 files changed, 5 insertions, 3 deletions
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); + } } } |