diff options
author | Jim Wilson <wilson@cygnus.com> | 1997-08-25 00:25:22 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1997-08-24 17:25:22 -0700 |
commit | feb9ea1a1f618a459ee8b1e8980008c537985df4 (patch) | |
tree | c6c50b3cafa178fdd2cde1c7d62e522c72731e0c /gcc/Makefile.in | |
parent | 4c9e597b51319955fdf1d71613874899cbdeb631 (diff) | |
download | gcc-feb9ea1a1f618a459ee8b1e8980008c537985df4.zip gcc-feb9ea1a1f618a459ee8b1e8980008c537985df4.tar.gz gcc-feb9ea1a1f618a459ee8b1e8980008c537985df4.tar.bz2 |
Fix solaris2 (without GNU install installed) install failure.
* Makefile.in (install-info): Don't cd into srcdir. Add srcdir to
filenames. Use sed to extract base filename for install.
From-SVN: r14910
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index b273571..0e37786 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2242,10 +2242,14 @@ install-driver: xgcc fi # Install the info files. +# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir +# to do the install. The sed rule was copied from stmp-int-hdrs. install-info: doc installdirs lang.install-info -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info* - cd $(srcdir); for f in cpp.info* gcc.info*; \ - do $(INSTALL_DATA) $$f $(infodir)/$$f; done + for f in $(srcdir)/cpp.info* $(srcdir)/gcc.info*; do \ + realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ + $(INSTALL_DATA) $$f $(infodir)/$$realfile; \ + done -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info* # Install the man pages. |