From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A target that's even more bootstrap? Date: Thu, 20 Jun 2019 05:30:44 +0300 Message-ID: <83d0j9q97v.fsf@gnu.org> References: <837e9iubyp.fsf@gnu.org> <87d0japujz.fsf@telefonica.net> <87v9x25ejf.fsf@iki.fi> <83a7edsj62.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227170"; mail-complaints-to="usenet@blaine.gmane.org" Cc: ofv@wanadoo.es, tlikonen@iki.fi, lokedhs@gmail.com, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 20 04:45:08 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdn4W-000wyC-9x for ged-emacs-devel@m.gmane.org; Thu, 20 Jun 2019 04:45:08 +0200 Original-Received: from localhost ([::1]:43280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdn4V-0001lh-35 for ged-emacs-devel@m.gmane.org; Wed, 19 Jun 2019 22:45:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56437) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdn21-0007R3-W0 for emacs-devel@gnu.org; Wed, 19 Jun 2019 22:42:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hdmqp-0006H3-60; Wed, 19 Jun 2019 22:30:59 -0400 Original-Received: from [176.228.60.248] (port=3746 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hdmqn-00076n-4r; Wed, 19 Jun 2019 22:30:59 -0400 In-reply-to: (message from Juanma Barranquero on Wed, 19 Jun 2019 22:06:34 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237944 Archived-At: > From: Juanma Barranquero > Date: Wed, 19 Jun 2019 22:06:34 +0200 > Cc: Teemu Likonen , Óscar Fuentes , > lokedhs@gmail.com, Emacs developers > > > > Probably the same but a bit less violent is "git clean -fdx" (maybe > > > first with "--dry-run"). > > > > These targets need to do their job even when Git is not around, or the > > source tree has no history data, so we cannot rely on Git for this > > matter. > > Still, it should be possible to use "git clean -fdx" (or perhaps -fdX) > if we detect we're in a git checkout and git's available, and default > to target-jumping around the makefiles otherwise. There should be no need for that, as we ought to know which generated files should be removed. And using Git runs the risk of deleting files unrelated to the build that the user may wish to keep.