Fix make install-gcc-specs with empty GCC_SPEC_FILES
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 2 May 2016 13:08:59 +0000 (13:08 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 2 May 2016 13:08:59 +0000 (13:08 +0000)
* gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
Honor DESTDIR.

From-SVN: r235754

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Makefile.in

index 6f56c6078a31e1e906a92c9678127dd29e0945b7..a48c2f5f6f12f8b6f2cceecbde1372c5eb7d29e0 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
+       Honor DESTDIR.
+
 2016-05-02  Tristan Gingold  <gingold@adacore.com>
 
        * fname.adb (Is_Predefined_File_Name): Also consider non-krunched
index d9ede9f4260f3e794af09a98c7b9e53ba3ee86f7..8996dd1bef196758ee527d4be6c233d9746a7852 100644 (file)
@@ -2670,10 +2670,9 @@ gnatlink-re: ../stamp-tools gnatmake-re
 install-gcc-specs:
 #      Install all the requested GCC spec files.
 
-       for f in $(GCC_SPEC_FILES); do \
-           $(INSTALL_DATA_DATE) $(srcdir)/ada/$$f \
-           $(libsubdir)/$$(echo $$f|sed -e 's#_[a-zA-Z0-9]*##g'); \
-       done
+       $(foreach f,$(GCC_SPEC_FILES), \
+           $(INSTALL_DATA_DATE) $(srcdir)/ada/$(f) \
+           $(DESTDIR)$(libsubdir)/$$(echo $(f)|sed -e 's#_[a-zA-Z0-9]*##g');)
 
 install-gnatlib: ../stamp-gnatlib-$(RTSDIR) install-gcc-specs
        $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)