aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Leich <email@froggs.de>2014-08-30 21:19:39 +0200
committerTobias Leich <email@froggs.de>2014-08-30 21:19:39 +0200
commit414b5d761fd526eb73150b1579fc7e45aad138b0 (patch)
treeb14da4eb15b318dc2a6ac00abd20b8da6c2f04cb
parent8c8b8a7f3ae8ff46e25789cf7e4cf986df47a353 (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`.
-rw-r--r--Configure.pl8
-rw-r--r--tools/build/Makefile.in6
2 files changed, 11 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);
+ }
}
}
diff --git a/tools/build/Makefile.in b/tools/build/Makefile.in
index 1c7cdd8..817ae0e 100644
--- a/tools/build/Makefile.in
+++ b/tools/build/Makefile.in
@@ -131,8 +131,14 @@ realclean: clean
configclean:
$(RM_F) $(CLEANUPS)
cd $(NQP_DIR) && $(MAKE) clean
+
+configclean-p:
cd $(PARROT_DIR) && $(MAKE) clean
+configclean-j:
+
+configclean-m:
+
testclean: