aboutsummaryrefslogtreecommitdiff
path: root/configure.texi
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-04-14 19:02:48 +0000
committerPer Bothner <per@bothner.com>1992-04-14 19:02:48 +0000
commit8becd045a3ff51887dead36493bb591a878c9ed5 (patch)
treeec8d2807dcb106e75b02aebab2ba0e21592ff7f7 /configure.texi
parent13b5a7ff3e21bcde878d7f05ce9fa9f999e5dd82 (diff)
downloadgdb-8becd045a3ff51887dead36493bb591a878c9ed5.zip
gdb-8becd045a3ff51887dead36493bb591a878c9ed5.tar.gz
gdb-8becd045a3ff51887dead36493bb591a878c9ed5.tar.bz2
* configure: Add support for 'subdirs' variable, which is
like 'configdirs', except that configure doesn't re-invoke itself for subdirs, it just creates a Makefile for each subdir. * configure.texi: Document subdirs.
Diffstat (limited to 'configure.texi')
-rw-r--r--configure.texi27
1 files changed, 22 insertions, 5 deletions
diff --git a/configure.texi b/configure.texi
index 5c7545e..89bcef7 100644
--- a/configure.texi
+++ b/configure.texi
@@ -983,13 +983,30 @@ error message.
@defvar{configdirs}
Contains the names of any subdirectories where @code{configure} should
recur. You must usually set this in the per-invocation section of
-@file{configure.in}. If @file{Makefile.in} contains a line starting
-with @code{SUBDIRS =}, then it will be replaced with an assignment to
-@code{SUBDIRS} using the value of @code{configdirs}. This can be used
-to determine which directories to configure and build depending on the
-host and target configurations.
+@file{configure.in}.
+If @file{Makefile.in} contains a line starting with @code{SUBDIRS =},
+then it will be replaced with an assignment to @code{SUBDIRS} using
+the value of @code{configdirs} (if #code{subdirs} is empty). This can
+be used to determine which directories to configure and build depending
+on the host and target configurations.
@c Most other matching makefile/config vars use the same name. Why not
@c this? (FIXME).
+@c Can we get rid of SUBDIRS-substitution? It doesn't work well with subdirs.
+Use @code{configdirs} (instead of the @code{subdirs} variable
+described below) if you want to be able to partition the
+sub-directories, or use independent Makefile fragments.
+Each sub-directory can be independent, and independently re-configured.
+@end defvar
+
+@defvar{subdirs}
+Contains the names of any subdirectories where @code{configure} should
+create a @code{Makefile} (in addition to the current directory),
+@emph{without} recursively running @code{configure}.
+Use @code{subdirs} (instead of the @code{configdirs} variable
+described above) if you want to configure all of the directories
+as a unit. Since there is a single invocation of @code{configure}
+that configures many directories, all the directories can use the
+same Makefile fragments, and the same @code{configure.in}.
@end defvar
@defvar{host}