From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9079 invoked by alias); 6 Nov 2012 11:55:52 -0000 Received: (qmail 9063 invoked by uid 22791); 6 Nov 2012 11:55:51 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KHOP_SPAMHAUS_DROP,TW_JL,TW_ZC X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Nov 2012 11:55:46 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 5B741CB04E5 for ; Tue, 6 Nov 2012 12:55:46 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aVqea7f4ttrg for ; Tue, 6 Nov 2012 12:55:46 +0100 (CET) Received: from chelles.act-europe.fr (chelles.act-europe.fr [10.10.0.160]) by mel.act-europe.fr (Postfix) with ESMTP id 4831CCB021E for ; Tue, 6 Nov 2012 12:55:46 +0100 (CET) Received: by chelles.act-europe.fr (Postfix, from userid 525) id 36D231EA005A; Tue, 6 Nov 2012 12:55:46 +0100 (CET) Date: Tue, 06 Nov 2012 11:55:00 -0000 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Subject: Re: [Ada] clean ups in Makefiles Message-ID: <20121106115546.GA25922@adacore.com> References: <20121106090654.GA6005@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121106090654.GA6005@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00508.txt.bz2 The previous patch is further cleaned up by removing the osconstool target in libada/Makefile.in which was hard to maintain. Tested on x86_64-pc-linux-gnu, committed on trunk. libada/ * Makefile.in (osconstool): Removed, no longer needed. ada/ * gcc-interface/Makefile.in: Improve handling of s-oscons.ads. -- Index: libada/Makefile.in =================================================================== --- libada/Makefile.in (revision 193215) +++ libada/Makefile.in (working copy) @@ -94,7 +94,7 @@ LIBADA_FLAGS_TO_PASS = \ .PHONY: gnatlib gnatlib-plain gnatlib-sjlj gnatlib-zcx gnatlib-shared osconstool gnatlib: @default_gnatlib_target@ -gnatlib-plain: osconstool $(GCC_DIR)/ada/Makefile +gnatlib-plain: $(GCC_DIR)/ada/Makefile test -f stamp-libada || \ $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) gnatlib \ && touch stamp-libada @@ -103,7 +103,7 @@ gnatlib-plain: osconstool $(GCC_DIR)/ada $(LN_S) $(ADA_RTS_DIR) adainclude $(LN_S) $(ADA_RTS_DIR) adalib -gnatlib-sjlj gnatlib-zcx gnatlib-shared: osconstool $(GCC_DIR)/ada/Makefile +gnatlib-sjlj gnatlib-zcx gnatlib-shared: $(GCC_DIR)/ada/Makefile test -f stamp-libada || \ $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) $@ \ && touch stamp-libada @@ -112,9 +112,6 @@ gnatlib-sjlj gnatlib-zcx gnatlib-shared: $(LN_S) $(ADA_RTS_DIR) adainclude $(LN_S) $(ADA_RTS_DIR) adalib -osconstool: - $(MAKE) -C $(GCC_DIR) $(LIBADA_FLAGS_TO_PASS) ada/s-oscons.ads - install-gnatlib: $(GCC_DIR)/ada/Makefile $(MAKE) -C $(GCC_DIR)/ada $(LIBADA_FLAGS_TO_PASS) install-gnatlib Index: gcc-interface/Makefile.in =================================================================== --- gcc-interface/Makefile.in (revision 193215) +++ gcc-interface/Makefile.in (working copy) @@ -2577,13 +2604,14 @@ $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));) # Copy tsystem.h $(CP) $(srcdir)/tsystem.h $(RTSDIR) -# Copy generated target dependent sources - $(RM) $(RTSDIR)/s-oscons.ads - (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads) $(RM) ../stamp-gnatlib-$(RTSDIR) touch ../stamp-gnatlib1-$(RTSDIR) -gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) +$(RTSDIR)/s-oscons.ads: ../stamp-gnatlib1-$(RTSDIR) + $(RM) $(RTSDIR)/s-oscons.ads + (cd $(RTSDIR); $(LN_S) ../s-oscons.ads s-oscons.ads) + +gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../stamp-gnatlib2-$(RTSDIR) $(RTSDIR)/s-oscons.ads # C files $(MAKE) -C $(RTSDIR) \ CC="`echo \"$(GCC_FOR_TARGET)\" \