From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm4a5-0006xa-6p for qemu-devel@nongnu.org; Wed, 27 Jul 2011 09:55:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qm4a3-0006ol-V1 for qemu-devel@nongnu.org; Wed, 27 Jul 2011 09:55:25 -0400 MIME-Version: 1.0 In-Reply-To: References: <1311652562-10794-1-git-send-email-cerbere@gmail.com> <1311652562-10794-2-git-send-email-cerbere@gmail.com> From: Alexandre Raymond Date: Wed, 27 Jul 2011 09:55:02 -0400 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Markus Armbruster Cc: qemu-trivial@nongnu.org, Qemu Developers > There are many more object files that are built conditionally. =C2=A0Why = is > it okay not to delete them? Perhaps they should be deleted too... The GNU Make manual says the following about "distclean": http://www.gnu.org/s/hello/manual/make/Standard-Targets.html "Delete all files in the current directory (or created by this makefile) that are created by configuring or building the program. If you have unpacked the source and built the program without creating any other files, =E2=80=98make distclean=E2=80=99 should leave only the fil= es that were in the distribution. However, there is no need to delete parent directories that were created with =E2=80=98mkdir -p=E2=80=99, since they c= ould have existed anyway. " Now, if everyone agrees that "distclean" is fine as it is, I won't insist on anything. > > If you unwisely messed up your source tree by building in it, a simple > and reliable way out is to git-clone yourself a new one. =C2=A0Or if you > insist on recovering in-place, remove files outside .git that aren't in > git. > Indeed. Alexandre