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