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
This commit is contained in:
Jim Wilson 1997-08-25 00:25:22 +00:00 committed by Jim Wilson
parent 4c9e597b51
commit feb9ea1a1f
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Sun Aug 24 17:22:21 1997 Jim Wilson <wilson@cygnus.com>
* Makefile.in (install-info): Don't cd into srcdir. Add srcdir to
filenames. Use sed to extract base filename for install.
Sat Aug 23 18:19:40 1997 John F. Carr <jfc@mit.edu>
* unroll.c (find_splittable_givs): Only share if two givs have the

View File

@ -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.

View File

@ -435,10 +435,14 @@ f77.install-common:
fi ; \
else true; fi
# $(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.
f77.install-info:
-rm -f $(infodir)/g77.info*
cd $(srcdir)/f; for f in g77.info*; \
do $(INSTALL_DATA) $$f $(infodir)/$$f; done
for f in $(srcdir)/f/g77.info*; do \
realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
$(INSTALL_DATA) $$f $(infodir)/$$realfile; \
done
-chmod a-x $(infodir)/g77.info*
f77.install-man: $(srcdir)/f/g77.1