aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-18 20:48:27 +0000
committerRichard Stallman <rms@gnu.org>1993-05-18 20:48:27 +0000
commit0b2fbcb218bf425157703efd30fba585f6b94249 (patch)
tree92a8b02416a61c8dd23a8b1113fcf94c976d847b
parent78c5c64609b46d501b45a9d20dfc3e5fb2ab308a (diff)
downloadgcc-0b2fbcb218bf425157703efd30fba585f6b94249.zip
gcc-0b2fbcb218bf425157703efd30fba585f6b94249.tar.gz
gcc-0b2fbcb218bf425157703efd30fba585f6b94249.tar.bz2
(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
-rw-r--r--gcc/Makefile.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 0f469b8..d507f51 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)