Add install-strip to sim/
authorTom Tromey <tromey@adacore.com>
Wed, 18 Dec 2019 15:50:57 +0000 (08:50 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 19 Dec 2019 18:28:53 +0000 (11:28 -0700)
PR build/24572 notes that "make install-strip" fails.  For me, it
works in every directory except "sim", so this patch adds
install-strip targets to the Makefiles that appear there.

sim/ChangeLog
2019-12-19  Tom Tromey  <tromey@adacore.com>

PR build/24572:
* Makefile.in (install-strip): New target.

sim/common/ChangeLog
2019-12-19  Tom Tromey  <tromey@adacore.com>

PR build/24572:
* Makefile.in (install-strip): New target.

sim/igen/ChangeLog
2019-12-19  Tom Tromey  <tromey@adacore.com>

PR build/24572:
* Makefile.in (install-strip): New target.

sim/ppc/ChangeLog
2019-12-19  Tom Tromey  <tromey@adacore.com>

PR build/24572:
* Makefile.in (install-strip): New target.

sim/testsuite/ChangeLog
2019-12-19  Tom Tromey  <tromey@adacore.com>

PR build/24572:
* Makefile.in (install-strip): New target.

Change-Id: I76613bc5c7e7812284f33826f8a5d914477fcdc5

sim/ChangeLog
sim/Makefile.in
sim/common/ChangeLog
sim/common/Makefile.in
sim/igen/ChangeLog
sim/igen/Makefile.in
sim/ppc/ChangeLog
sim/ppc/Makefile.in
sim/testsuite/ChangeLog
sim/testsuite/Makefile.in

index 7443e8442d9b32a0178afe61e46198674df525c9..72d4d4eb36ba25ae9cd6f1514b1e6adc315b1a60 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-19  Tom Tromey  <tromey@adacore.com>
+
+       PR build/24572:
+       * Makefile.in (install-strip): New target.
+
 2019-09-23  Dimitar Dimitrov  <dimitar@dinux.eu>
 
        * MAINTAINERS: Add myself as PRU maintainer.
index 5a953fd4ad5b85409cc56347734608325b5c8616..3a85eeb581de8dbe9d74a29fc6371c7d35fa924e 100644 (file)
@@ -166,6 +166,16 @@ install:
                else true; fi; \
        done
 
+install-strip:
+       @rootme=`pwd` ; export rootme ; \
+       for dir in . ${SUBDIRS}; do \
+               if [ "$$dir" = "." ]; then \
+                       true; \
+               elif [ -d $$dir ]; then \
+                       (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install-strip) || exit 1; \
+               else true; fi; \
+       done
+
 installcheck:
        @echo No installcheck target is available yet for the GNU simulators.
 
index 12d900e8b68a95fe88a6e9f40d4060c605ec21c7..6610c7ba9b2536cba2a35c717ae42c920a5a54c8 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-19  Tom Tromey  <tromey@adacore.com>
+
+       PR build/24572:
+       * Makefile.in (install-strip): New target.
+
 2019-12-01  Pavel I. Kryukov  <kryukov@frtk.ru>
 
        * sim-utils.c: Prevent buffer overflow.
index c62bd260697ae607957740661202f78e7a39d715..6d094aab363dd866058bd52b83b24dfa52105a18 100644 (file)
@@ -115,6 +115,7 @@ force:
 
 # Copy the files into directories where they will be run.
 install: install-man
+install-strip: install-man
 
 install-man: installdirs
        n=`echo run | sed '$(program_transform_name)'`; \
index 932633edaa425e785abb8f1a509d601ef177582f..beda37b56ea2267fec4a394e945c6bbc554534a1 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-19  Tom Tromey  <tromey@adacore.com>
+
+       PR build/24572:
+       * Makefile.in (install-strip): New target.
+
 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index f3a797729edf01bfea2c3ce6d75d7eee0b9f21b1..f287242e3e5a127133dfd8a1f1170af44c279e4b 100644 (file)
@@ -183,4 +183,5 @@ config.status: configure
        $(SHELL) ./config.status --recheck
 
 install:
+install-strip:
 #
index 665c7606d9eb16bda8d4ca9ee86b37285dffa65b..4d6fb6dac405c4e280abca43106495573c4ea5ff 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-19  Tom Tromey  <tromey@adacore.com>
+
+       PR build/24572:
+       * Makefile.in (install-strip): New target.
+
 2019-01-26  Tom Tromey  <tom@tromey.com>
 
        * Makefile.in (version.c): Use sim's create-version.sh.
index fb5a6bd21e320f31d97e01ea418175c44f2038fe..8ad76c6ed3b1e15395b1172e963ed98c6c45b861 100644 (file)
@@ -884,5 +884,10 @@ install: installdirs
        n=`echo run | sed '$(program_transform_name)'`; \
        $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
 
+install-strip: installdirs
+       n=`echo run | sed '$(program_transform_name)'`; \
+       $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
+       $(STRIP) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
+
 installdirs:
        $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)
index 89bd065751c29b089e2416832eaacbf0d27390ab..3be4a00c5c7022c2032a11787429aa902af51d52 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-19  Tom Tromey  <tromey@adacore.com>
+
+       PR build/24572:
+       * Makefile.in (install-strip): New target.
+
 2019-09-23  Dimitar Dimitrov  <dimitar@dinux.eu>
 
        * configure: Regenerate.
index a9b50ede98c4c39960b9a872080513e1a0f08a27..e127ae271a28c64ebe7d777bdb16fb5e04b2ea1c 100644 (file)
@@ -81,6 +81,7 @@ install-info:
 dvi:
 
 install:
+install-strip:
 
 uninstall: force