aboutsummaryrefslogtreecommitdiff
path: root/make.texinfo
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-04-21 00:55:18 +0000
committerRoland McGrath <roland@redhat.com>1994-04-21 00:55:18 +0000
commitf875c951151281274724a56d358fd420fe77a42b (patch)
tree9a90ff3940c8281697451bf21509d1b56f0f56af /make.texinfo
parentf2c10dedf0cdf46848c4361032decf00c126b748 (diff)
downloadgunmake-f875c951151281274724a56d358fd420fe77a42b.tar.gz
(Archive Members): Don't say archive file must exist. Instead, in ar cmds
example, use `c' flag and mention it is needed if archive doesn't exist. (Archive Update): Fix typo: foo.o -> file.o.
Diffstat (limited to 'make.texinfo')
-rw-r--r--make.texinfo13
1 files changed, 7 insertions, 6 deletions
diff --git a/make.texinfo b/make.texinfo
index 87f660a..cdbf904 100644
--- a/make.texinfo
+++ b/make.texinfo
@@ -7609,8 +7609,7 @@ main use is as subroutine libraries for linking.
@cindex archive member targets
An individual member of an archive file can be used as a target or
-dependency in @code{make}. The archive file must already exist, but the
-member need not exist. You specify the member named @var{member} in
+dependency in @code{make}. You specify the member named @var{member} in
archive file @var{archive} as follows:
@example
@@ -7628,11 +7627,13 @@ use @code{ar}. For example, this rule says to create a member
@example
foolib(hack.o) : hack.o
- ar r foolib hack.o
+ ar cr foolib hack.o
@end example
In fact, nearly all archive member targets are updated in just this way
-and there is an implicit rule to do it for you.
+and there is an implicit rule to do it for you. @strong{Note:} The
+@samp{c} flag to @code{ar} is required if the archive file does not
+already exist.
To specify several members in the same archive, you can write all the
member names together between the parentheses. For example:
@@ -7700,8 +7701,8 @@ ar r foo.a dir/file.o
@end example
@noindent
-which has the effect of copying the file @file{dir/foo.o} into a member
-named @file{foo.o}. In connection with such usage, the automatic variables
+which has the effect of copying the file @file{dir/file.o} into a member
+named @file{file.o}. In connection with such usage, the automatic variables
@code{%D} and @code{%F} may be useful.
@menu