[haible@ilog.fr: [patch] make install]

Craig Burley burley@gnu.org
Wed Jan 7 12:03:00 GMT 1998


[Is this a reasonable thing for language to do, in general?  If so,
it might be worth considering for all of them.]


------- Start of forwarded message -------
From: Bruno Haible <haible@ilog.fr>
Date: Wed, 7 Jan 1998 18:40:59 +0100 (MET)
To: Craig Burley <burley@gnu.ai.mit.edu>
Subject: [patch] make install


Hi,

When I take the full egcs snapshot, configure it in a separate directory,
change the LANGUAGES line in the Makefile to not include "f77", then
"make" will succeed but "make install" will fail because it tries to
install the nonexistent file "f/g77.info*". Here is a fix:


Wed Jan  7 12:05:51 1998  Bruno Haible  <bruno@linuix.mathematik.uni-karlsruhe.de>

        * Make-lang.in (f77.install-info): Don't fail if the info files
          don't exist.

*** egcs-971225/gcc/f/Make-lang.in.bak	Tue Dec  2 17:54:03 1997
- --- egcs-971225/gcc/f/Make-lang.in	Wed Jan  7 12:03:16 1998
***************
*** 484,493 ****
  # to do the install.  The sed rule was copied from stmp-int-hdrs.
  f77.install-info: f77.info
  	-rm -f $(infodir)/g77.info*
! 	for f in 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
- --- 484,495 ----
  # to do the install.  The sed rule was copied from stmp-int-hdrs.
  f77.install-info: f77.info
  	-rm -f $(infodir)/g77.info*
! 	if [ -f f/g77.info ] ; then \
! 	  for f in f/g77.info*; do \
  	    realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
  	    $(INSTALL_DATA) $$f $(infodir)/$$realfile; \
! 	  done; \
! 	fi
  	-chmod a-x $(infodir)/g77.info*
  
  f77.install-man: $(srcdir)/f/g77.1
------- End of forwarded message -------



More information about the Gcc mailing list