Message ID | c7d3104b-1eeb-f0d5-6b2d-5374b5690f7b@suse.cz |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 819B03858C27 for <patchwork@sourceware.org>; Mon, 25 Oct 2021 14:35:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 129E23858439 for <gcc-patches@gcc.gnu.org>; Mon, 25 Oct 2021 14:34:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 129E23858439 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D213E1FD47 for <gcc-patches@gcc.gnu.org>; Mon, 25 Oct 2021 14:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1635172468; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dySb9ZvOcPxCteo5eDIfmRSPvlkLDW05QQTLBAoIQPs=; b=0fk1tns7Rzuvmjmf8qpuZActFLFB5zo0GpL4rM3sPm0futKFUfrpdXuHmCFJiwSuz+DYlE kiW0EQvdqnElMq1ruo53RPGND20wpUh+cYVSOfC55BNfhdgyi94ecOawscXv1XDAHH/SBt gEyrR4E3RQdDXNUXO3hkyFgSIyENhco= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1635172468; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dySb9ZvOcPxCteo5eDIfmRSPvlkLDW05QQTLBAoIQPs=; b=vVSzy4fRdN9Ofd52TulCWb6zDS62zsUqQwGjscYqzZriwgw/Cw2jv6O93AnO2FxODP+C+d ub6u0zJGsKqUcLBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C16D013C0B for <gcc-patches@gcc.gnu.org>; Mon, 25 Oct 2021 14:34:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id zb0bLnTAdmH3fgAAMHmgww (envelope-from <mliska@suse.cz>) for <gcc-patches@gcc.gnu.org>; Mon, 25 Oct 2021 14:34:28 +0000 Message-ID: <c7d3104b-1eeb-f0d5-6b2d-5374b5690f7b@suse.cz> Date: Mon, 25 Oct 2021 16:34:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= <mliska@suse.cz> Subject: [PATCH] libcody: add mostlyclean Makefile target To: gcc-patches@gcc.gnu.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
libcody: add mostlyclean Makefile target
|
|
Commit Message
Martin Liška
Oct. 25, 2021, 2:34 p.m. UTC
Hello. The patch adds missing Makefile mostlyclean. Ready to be installed? Thanks, Martin PR other/102657 libcody/ChangeLog: * Makefile.in: Add mostlyclean Makefile target. --- libcody/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On Mon, Oct 25, 2021 at 7:35 AM Martin Liška <mliska@suse.cz> wrote: > > Hello. > > The patch adds missing Makefile mostlyclean. > > Ready to be installed? > Thanks, > Martin > Generally the way the various "*clean" targets are arranged, in order of cleanliness, from least clean to most clean, is: mostlyclean clean distclean maintainer-clean ...with each target depending on the previous one in the order. So thus, instead of mostlyclean depending on clean, it'd be the other way around, with clean depending on mostlyclean. See how the gcc/ subdirectory does it, for example. See the "Standard Targets for Users" section of the GNU Coding Standards: https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets > PR other/102657 > > libcody/ChangeLog: > > * Makefile.in: Add mostlyclean Makefile target. > --- > libcody/Makefile.in | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libcody/Makefile.in b/libcody/Makefile.in > index b8b45a2e310..d8f1e8216d4 100644 > --- a/libcody/Makefile.in > +++ b/libcody/Makefile.in > @@ -111,7 +111,7 @@ maintainer-clean:: distclean > clean:: > rm -f $(shell find $(srcdir) -name '*~') > > -.PHONY: all check clean distclean maintainer-clean > +.PHONY: all check clean distclean maintainer-clean mostlyclean > > CXXFLAGS/ := -I$(srcdir) > LIBCODY.O := buffer.o client.o fatal.o netclient.o netserver.o \ > @@ -127,6 +127,8 @@ clean:: > rm -f $(LIBCODY.O) $(LIBCODY.O:.o=.d) > rm -f libcody.a > > +mostlyclean: clean > + > CXXFLAGS/fatal.cc = -DSRCDIR='"$(srcdir)"' > > fatal.o: Makefile revision > -- > 2.33.1 >
On 10/25/21 18:10, Eric Gallager wrote: > On Mon, Oct 25, 2021 at 7:35 AM Martin Liška <mliska@suse.cz> wrote: >> >> Hello. >> >> The patch adds missing Makefile mostlyclean. >> >> Ready to be installed? >> Thanks, >> Martin >> > > Generally the way the various "*clean" targets are arranged, in order > of cleanliness, from least clean to most clean, is: > mostlyclean > clean > distclean > maintainer-clean > ...with each target depending on the previous one in the order. So > thus, instead of mostlyclean depending on clean, it'd be the other way > around, with clean depending on mostlyclean. See how the gcc/ > subdirectory does it, for example. See the "Standard Targets for > Users" section of the GNU Coding Standards: > https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets Thank you for the explanation. There's updated version of the patch. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin > >> PR other/102657 >> >> libcody/ChangeLog: >> >> * Makefile.in: Add mostlyclean Makefile target. >> --- >> libcody/Makefile.in | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/libcody/Makefile.in b/libcody/Makefile.in >> index b8b45a2e310..d8f1e8216d4 100644 >> --- a/libcody/Makefile.in >> +++ b/libcody/Makefile.in >> @@ -111,7 +111,7 @@ maintainer-clean:: distclean >> clean:: >> rm -f $(shell find $(srcdir) -name '*~') >> >> -.PHONY: all check clean distclean maintainer-clean >> +.PHONY: all check clean distclean maintainer-clean mostlyclean >> >> CXXFLAGS/ := -I$(srcdir) >> LIBCODY.O := buffer.o client.o fatal.o netclient.o netserver.o \ >> @@ -127,6 +127,8 @@ clean:: >> rm -f $(LIBCODY.O) $(LIBCODY.O:.o=.d) >> rm -f libcody.a >> >> +mostlyclean: clean >> + >> CXXFLAGS/fatal.cc = -DSRCDIR='"$(srcdir)"' >> >> fatal.o: Makefile revision >> -- >> 2.33.1 >>
On Tue, Oct 26, 2021 at 5:47 AM Martin Liška <mliska@suse.cz> wrote: > > On 10/25/21 18:10, Eric Gallager wrote: > > On Mon, Oct 25, 2021 at 7:35 AM Martin Liška <mliska@suse.cz> wrote: > >> > >> Hello. > >> > >> The patch adds missing Makefile mostlyclean. > >> > >> Ready to be installed? > >> Thanks, > >> Martin > >> > > > > Generally the way the various "*clean" targets are arranged, in order > > of cleanliness, from least clean to most clean, is: > > mostlyclean > > clean > > distclean > > maintainer-clean > > ...with each target depending on the previous one in the order. So > > thus, instead of mostlyclean depending on clean, it'd be the other way > > around, with clean depending on mostlyclean. See how the gcc/ > > subdirectory does it, for example. See the "Standard Targets for > > Users" section of the GNU Coding Standards: > > https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets > > Thank you for the explanation. > > There's updated version of the patch. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? Hi, the patch looks ok to me, although I can't approve it... Who is the libcody maintainer, anyways? Nathan? Should that be listed in the MAINTAINERS file? Thanks, Eric Gallager > Thanks, > Martin > > > > >> PR other/102657 > >> > >> libcody/ChangeLog: > >> > >> * Makefile.in: Add mostlyclean Makefile target. > >> --- > >> libcody/Makefile.in | 4 +++- > >> 1 file changed, 3 insertions(+), 1 deletion(-) > >> > >> diff --git a/libcody/Makefile.in b/libcody/Makefile.in > >> index b8b45a2e310..d8f1e8216d4 100644 > >> --- a/libcody/Makefile.in > >> +++ b/libcody/Makefile.in > >> @@ -111,7 +111,7 @@ maintainer-clean:: distclean > >> clean:: > >> rm -f $(shell find $(srcdir) -name '*~') > >> > >> -.PHONY: all check clean distclean maintainer-clean > >> +.PHONY: all check clean distclean maintainer-clean mostlyclean > >> > >> CXXFLAGS/ := -I$(srcdir) > >> LIBCODY.O := buffer.o client.o fatal.o netclient.o netserver.o \ > >> @@ -127,6 +127,8 @@ clean:: > >> rm -f $(LIBCODY.O) $(LIBCODY.O:.o=.d) > >> rm -f libcody.a > >> > >> +mostlyclean: clean > >> + > >> CXXFLAGS/fatal.cc = -DSRCDIR='"$(srcdir)"' > >> > >> fatal.o: Makefile revision > >> -- > >> 2.33.1 > >>
On 10/26/2021 3:47 AM, Martin Liška wrote: > On 10/25/21 18:10, Eric Gallager wrote: >> On Mon, Oct 25, 2021 at 7:35 AM Martin Liška <mliska@suse.cz> wrote: >>> >>> Hello. >>> >>> The patch adds missing Makefile mostlyclean. >>> >>> Ready to be installed? >>> Thanks, >>> Martin >>> >> >> Generally the way the various "*clean" targets are arranged, in order >> of cleanliness, from least clean to most clean, is: >> mostlyclean >> clean >> distclean >> maintainer-clean >> ...with each target depending on the previous one in the order. So >> thus, instead of mostlyclean depending on clean, it'd be the other way >> around, with clean depending on mostlyclean. See how the gcc/ >> subdirectory does it, for example. See the "Standard Targets for >> Users" section of the GNU Coding Standards: >> https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets >> > > Thank you for the explanation. > > There's updated version of the patch. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > >> >>> PR other/102657 >>> >>> libcody/ChangeLog: >>> >>> * Makefile.in: Add mostlyclean Makefile target. >>> --- >>> libcody/Makefile.in | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/libcody/Makefile.in b/libcody/Makefile.in >>> index b8b45a2e310..d8f1e8216d4 100644 >>> --- a/libcody/Makefile.in >>> +++ b/libcody/Makefile.in >>> @@ -111,7 +111,7 @@ maintainer-clean:: distclean >>> clean:: >>> rm -f $(shell find $(srcdir) -name '*~') >>> >>> -.PHONY: all check clean distclean maintainer-clean >>> +.PHONY: all check clean distclean maintainer-clean mostlyclean >>> >>> CXXFLAGS/ := -I$(srcdir) >>> LIBCODY.O := buffer.o client.o fatal.o netclient.o netserver.o \ >>> @@ -127,6 +127,8 @@ clean:: >>> rm -f $(LIBCODY.O) $(LIBCODY.O:.o=.d) >>> rm -f libcody.a >>> >>> +mostlyclean: clean >>> + >>> CXXFLAGS/fatal.cc = -DSRCDIR='"$(srcdir)"' >>> >>> fatal.o: Makefile revision >>> -- >>> 2.33.1 >>> > > 0001-libcody-add-mostlyclean-Makefile-target.patch > > From fcad6039f910b49dfc4022d3b1eeb993025dabca Mon Sep 17 00:00:00 2001 > From: Martin Liska <mliska@suse.cz> > Date: Mon, 25 Oct 2021 16:32:55 +0200 > Subject: [PATCH] libcody: add mostlyclean Makefile target > > PR other/102657 > > libcody/ChangeLog: > > * Makefile.in: Add mostlyclean Makefile target. OK jeff
diff --git a/libcody/Makefile.in b/libcody/Makefile.in index b8b45a2e310..d8f1e8216d4 100644 --- a/libcody/Makefile.in +++ b/libcody/Makefile.in @@ -111,7 +111,7 @@ maintainer-clean:: distclean clean:: rm -f $(shell find $(srcdir) -name '*~') -.PHONY: all check clean distclean maintainer-clean +.PHONY: all check clean distclean maintainer-clean mostlyclean CXXFLAGS/ := -I$(srcdir) LIBCODY.O := buffer.o client.o fatal.o netclient.o netserver.o \ @@ -127,6 +127,8 @@ clean:: rm -f $(LIBCODY.O) $(LIBCODY.O:.o=.d) rm -f libcody.a +mostlyclean: clean + CXXFLAGS/fatal.cc = -DSRCDIR='"$(srcdir)"' fatal.o: Makefile revision