Received: from eggs.gnu.org ([140.186.70.92]:38284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlbQe-0003xP-0E for qemu-devel@nongnu.org; Tue, 26 Jul 2011 02:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlbQc-00023D-U7 for qemu-devel@nongnu.org; Tue, 26 Jul 2011 02:47:43 -0400 From: Markus Armbruster References: <1311652562-10794-1-git-send-email-cerbere@gmail.com> <1311652562-10794-2-git-send-email-cerbere@gmail.com> Date: Tue, 26 Jul 2011 08:47:38 +0200 In-Reply-To: <1311652562-10794-2-git-send-email-cerbere@gmail.com> (Alexandre Raymond's message of "Mon, 25 Jul 2011 23:56:01 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 1/2] Makefile: distclean should clean all possible targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre Raymond Cc: qemu-trivial@nongnu.org, Qemu Developers Alexandre Raymond writes: > At the moment, "make distclean" relies on the TARGET_DIRS variable, set by > configure. The problem is that this variable does not always contain all > possible targets. > > For example, the following will leave build data in the tree: > > ./configure && make && ./configure --target-list=i386-softmmu \ > && make distclean > > as it will only remove the i386-softmmu build directory, although the > first build created additional directories. Why is that a problem? > Solution : pass the full list of targets from configure to make via > the DEFAULT_TARGET_LIST variable. Well, I'd expect distclean to remove exactly what *this* makefile can build, and leave everything else alone. Your patch adds a special case to that simple rule: also remove not-configured target directories. Other not-configured stuff is still left behind. Special cases need special justification, hence my question above.