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 +++++--- tools/build/Makefile.in | 6 ++++++ 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: -- cgit v1.1