From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7429 invoked by alias); 10 May 2005 20:49:29 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7383 invoked from network); 10 May 2005 20:49:24 -0000 Received: from unknown (HELO mr.tuwien.ac.at) (128.131.2.109) by sourceware.org with SMTP; 10 May 2005 20:49:24 -0000 Received: from ahab.auto.tuwien.ac.at (ahab.auto.tuwien.ac.at [128.130.60.8]) by mr.tuwien.ac.at (8.12.10/8.12.8) with ESMTP id j4AKnK2m004023 for ; Tue, 10 May 2005 22:49:21 +0200 (MEST) Received: from ahab.auto.tuwien.ac.at (localhost.localdomain [127.0.0.1]) by ahab.auto.tuwien.ac.at (8.12.11/8.12.11) with ESMTP id j4AKnKFY025547 for ; Tue, 10 May 2005 22:49:20 +0200 Received: (from mkoegler@localhost) by ahab.auto.tuwien.ac.at (8.12.11/8.12.11/Submit) id j4AKnKhF025544 for gdb-patches@sources.redhat.com; Tue, 10 May 2005 22:49:20 +0200 Date: Tue, 10 May 2005 20:53:00 -0000 From: Martin Koegler To: gdb-patches@sources.redhat.com Subject: [PATCH] Add support for DESTDIR to the simulator core Message-ID: <20050510204920.GA24799@ahab.auto.tuwien.ac.at> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.1i X-SW-Source: 2005-05/txt/msg00230.txt.bz2 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-length: 254 I noticed, that sim is missing the support for DESTDIR in its Makefiles, which is supported by all automake based programs. The patch added support for this feature. Is it possible to apply it to the CVS? mfg Martin Kögler PS: Please CC me on replies. --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sim.korr.patch" Content-length: 1531 Index: Makefile.in =================================================================== RCS file: /cvs/src/src/sim/Makefile.in,v retrieving revision 1.6 diff -u -r1.6 Makefile.in --- Makefile.in 29 Jan 2005 00:53:13 -0000 1.6 +++ Makefile.in 10 May 2005 20:37:38 -0000 @@ -83,6 +83,7 @@ RUNTESTFLAGS= FLAGS_TO_PASS = \ + "DESTDIR=$(DESTDIR)" \ "prefix=$(prefix)" \ "exec_prefix=$(exec_prefix)" \ "bindir=$(bindir)" \ Index: common/Make-common.in =================================================================== RCS file: /cvs/src/src/sim/common/Make-common.in,v retrieving revision 1.21 diff -u -r1.21 Make-common.in --- common/Make-common.in 27 Apr 2005 20:38:08 -0000 1.21 +++ common/Make-common.in 10 May 2005 20:37:38 -0000 @@ -616,14 +616,14 @@ install-common: installdirs n=`echo run | sed '$(program_transform_name)'`; \ - $(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT) + $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \ - $(INSTALL_DATA) libsim.a $(libdir)/$$n ; \ - ( cd $(libdir) ; $(RANLIB) $$n ) + $(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \ + ( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n ) installdirs: - $(SHELL) $(srcdir)/../../mkinstalldirs $(bindir) - $(SHELL) $(srcdir)/../../mkinstalldirs $(libdir) + $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir) + $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir) check: cd ../testsuite && $(MAKE) check RUNTESTFLAGS="$(RUNTESTFLAGS)" --jRHKVT23PllUwdXP--