From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: A target that's even more bootstrap? Date: Thu, 20 Jun 2019 11:24:41 -0700 Organization: UCLA Computer Science Department Message-ID: <690a563c-beee-7df7-6f75-e999bf0a9f40@cs.ucla.edu> References: <87d0japujz.fsf@telefonica.net> <87v9x1oib6.fsf@telefonica.net> <831rzpsi5f.fsf@gnu.org> <83v9x1r2y5.fsf@gnu.org> <83imt1qzhr.fsf@gnu.org> <83ef3pqvzs.fsf@gnu.org> <835zp0quc8.fsf@gnu.org> <83y31wp6oj.fsf@gnu.org> <83sgs4p5ld.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------B16B7A598A7FCA75ABFD186F" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182854"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 20 21:16:14 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 1he2Xe-000lSY-Hx for ged-emacs-devel@m.gmane.org; Thu, 20 Jun 2019 21:16:14 +0200 Original-Received: from localhost ([::1]:52352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he2XU-0003uP-FW for ged-emacs-devel@m.gmane.org; Thu, 20 Jun 2019 15:16:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49927) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he26x-0003qs-NE for emacs-devel@gnu.org; Thu, 20 Jun 2019 14:48:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1he26v-0001Sp-De for emacs-devel@gnu.org; Thu, 20 Jun 2019 14:48:39 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52850) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1he1jp-0001Uu-2Q for emacs-devel@gnu.org; Thu, 20 Jun 2019 14:24:45 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3DFFA161B58 for ; Thu, 20 Jun 2019 11:24:43 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 3gDMl4vadh_d for ; Thu, 20 Jun 2019 11:24:42 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1D366161BD2 for ; Thu, 20 Jun 2019 11:24:42 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ddy-U3VUBZXU for ; Thu, 20 Jun 2019 11:24:42 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0222F161A29 for ; Thu, 20 Jun 2019 11:24:42 -0700 (PDT) Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+ KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABzSBQYXVsIEVnZ2Vy dCA8ZWdnZXJ0QGNzLnVjbGEuZWR1PsLBfgQTAQIAKAUCTIByZAIbAwUJEswDAAYLCQgHAwIG FQgCCQoLBBYCAwECH In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:237983 Archived-At: This is a multi-part message in MIME format. --------------B16B7A598A7FCA75ABFD186F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit >> I don't think it's portable enough. AFAIK, it's specific to GNU >> rmdir. >> Yes, and there's a simple and portable way to do it; I installed the attached. --------------B16B7A598A7FCA75ABFD186F Content-Type: text/x-patch; name="0001-Fix-extraclean-in-a-different-way-for-info-lib-sys.patch" Content-Disposition: attachment; filename*0="0001-Fix-extraclean-in-a-different-way-for-info-lib-sys.patc"; filename*1="h" Content-Transfer-Encoding: quoted-printable >From c626e5fc76785897a6c9c9e9863838244e091e4b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 20 Jun 2019 11:18:14 -0700 Subject: [PATCH] Fix extraclean in a different way for info+lib/sys MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * Makefile.in (extraclean): * lib/Makefile.in (extraclean): Use rmdir but suppress any error indication. That way, =E2=80=98make extraclean=E2=80=99 will remov= e the directory if it=E2=80=99s empty, and successfully do nothing otherwise. --- Makefile.in | 1 + lib/Makefile.in | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile.in b/Makefile.in index c829ca29bd..aa11e6b0b7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -942,6 +942,7 @@ extraclean: $(extraclean_dirs: -rm -f config-tmp-* aclocal.m4 configure -rm -f ./*~ \#* etc/refcards/emacsver.tex doc/emacs/emacsver.texi -rm -f info/*.info info/dir + -rmdir info 2>/dev/null =20 # The src subdir knows how to do the right thing # even when the build directory and source dir are different. diff --git a/lib/Makefile.in b/lib/Makefile.in index bf9b01f143..1973452b22 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -127,6 +127,7 @@ distclean bootstrap-clean: maintainer-clean: distclean rm -f TAGS gnulib.mk extraclean: distclean + -rmdir sys 2>/dev/null =20 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean =20 --=20 2.21.0 --------------B16B7A598A7FCA75ABFD186F--