bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] manual: relocate $? example


From: Mike Frysinger
Subject: [PATCH] manual: relocate $? example
Date: Wed, 25 May 2016 18:44:43 -0400

The $? example shows up after all the automatic variables are discussed.
This is weird as it's only relevant to the $? section, and the content
that follows it is relevant to all the automatic variables.

Move it up to the $? specific section.
---
 doc/make.texi | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/doc/make.texi b/doc/make.texi
index 01bcec7..e10c84e 100644
--- a/doc/make.texi
+++ b/doc/make.texi
@@ -9902,6 +9902,18 @@ implicit rule (@pxref{Implicit Rules}).
 The names of all the prerequisites that are newer than the target, with
 spaces between them.  For prerequisites which are archive members, only
 the named member is used (@pxref{Archives}).
+
address@hidden is useful even in explicit rules when you wish to operate on only
+the prerequisites that have changed.  For example, suppose that an archive
+named @file{lib} is supposed to contain copies of several object files.
+This rule copies just the changed object files into the archive:
+
address@hidden
address@hidden
+lib: foo.o bar.o lose.o win.o
+        ar r lib $?
address@hidden group
address@hidden example
 @cindex prerequisites, list of changed
 @cindex list of changed prerequisites
 
@@ -9958,18 +9970,6 @@ If the target name in an explicit rule does not end with 
a recognized
 suffix, @samp{$*} is set to the empty string for that rule.
 @end table
 
address@hidden is useful even in explicit rules when you wish to operate on only
-the prerequisites that have changed.  For example, suppose that an archive
-named @file{lib} is supposed to contain copies of several object files.
-This rule copies just the changed object files into the archive:
-
address@hidden
address@hidden
-lib: foo.o bar.o lose.o win.o
-        ar r lib $?
address@hidden group
address@hidden example
-
 Of the variables listed above, four have values that are single file
 names, and three have values that are lists of file names.  These seven
 have variants that get just the file's directory name or just the file
-- 
2.8.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]