Commit feb9ea1a by Jim Wilson Committed by Jim Wilson

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
parent 4c9e597b
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> 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 * unroll.c (find_splittable_givs): Only share if two givs have the
......
...@@ -2242,10 +2242,14 @@ install-driver: xgcc ...@@ -2242,10 +2242,14 @@ install-driver: xgcc
fi fi
# Install the info files. # 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 install-info: doc installdirs lang.install-info
-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info* -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
cd $(srcdir); for f in cpp.info* gcc.info*; \ for f in $(srcdir)/cpp.info* $(srcdir)/gcc.info*; do \
do $(INSTALL_DATA) $$f $(infodir)/$$f; done realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
$(INSTALL_DATA) $$f $(infodir)/$$realfile; \
done
-chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info* -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*
# Install the man pages. # Install the man pages.
......
...@@ -435,10 +435,14 @@ f77.install-common: ...@@ -435,10 +435,14 @@ f77.install-common:
fi ; \ fi ; \
else true; 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: f77.install-info:
-rm -f $(infodir)/g77.info* -rm -f $(infodir)/g77.info*
cd $(srcdir)/f; for f in g77.info*; \ for f in $(srcdir)/f/g77.info*; do \
do $(INSTALL_DATA) $$f $(infodir)/$$f; done realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
$(INSTALL_DATA) $$f $(infodir)/$$realfile; \
done
-chmod a-x $(infodir)/g77.info* -chmod a-x $(infodir)/g77.info*
f77.install-man: $(srcdir)/f/g77.1 f77.install-man: $(srcdir)/f/g77.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment