From 0b2fbcb218bf425157703efd30fba585f6b94249 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 18 May 1993 20:48:27 +0000 Subject: [PATCH] (infodir): New variable. (install-dir): Create that dir. (install-info): New rule. (install-normal): Depend on install-info. (local_prefix): Do not default from $(prefix). From-SVN: r4498 --- gcc/Makefile.in | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 0f469b8afbc..d507f51debb 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -141,7 +141,8 @@ prefix = /usr/local # Directory in which to put localized header files. On the systems with # gcc as the native cc, `local_prefix' may not be `prefix' which is # `/usr'. -local_prefix = $(prefix) +# NOTE: local_prefix *should not* default from prefix. +local_prefix = /usr/local # Directory in which to put host dependent programs and libraries exec_prefix = $(prefix) # Directory in which to put the executable for the command `gcc' @@ -154,6 +155,8 @@ libsubdir = $(libdir)/gcc-lib/$(target)/$(version) includedir = $(local_prefix)/include # assertdir is overridden in cross-make. assertdir = $(includedir) +# where the info files go +infodir = $(prefix)/info # Extension (if any) to put in installed man-page filename. manext = .1 # Directory in which to put man pages. @@ -1510,7 +1513,8 @@ realclean: distclean install: $(INSTALL_TARGET) ; @true # Copy the compiler files into directories where they will be run. -install-normal: install-common $(INSTALL_HEADERS) install-libgcc install-man +install-normal: install-common $(INSTALL_HEADERS) install-libgcc install-man \ + install-info # Do nothing while making gcc with a cross-compiler. The person who # makes gcc for the target machine has to know how to put a complete @@ -1550,6 +1554,7 @@ install-dir: if [ -d $(assertdir) ] ; then true ; else mkdir $(assertdir) ; fi ; \ else true; \ fi + -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi # We don't use mkdir -p to create the parents of mandir, # because some systems don't support it. # Instead, we use this technique to create the immediate parent of mandir. @@ -1615,6 +1620,13 @@ install-common: native install-dir xgcc $(EXTRA_PARTS) -rm -f $(libsubdir)/cpp $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp +# Install the info files. +install-info: doc + -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info* + cd $(srcdir); for f in cpp.info* gcc.info*; \ + do $(INSTALL_DATA) $$f $(infodir)/$$f; done + -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info* + # Install the man pages. install-man: install-dir $(srcdir)/gcc.1 $(srcdir)/cccp.1 $(srcdir)/g++.1 -rm -f $(mandir)/gcc$(manext) -- 2.30.2