]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] cosmetics: move a variable definition
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 24 Jul 2012 14:36:34 +0000 (16:36 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 24 Jul 2012 14:36:34 +0000 (16:36 +0200)
* lib/am/header-vars.am (am.chars.empty): This, move earlier.  This both
fixes the associated comments (which referred to a variable defined above
it as "defined below"), and ensures that this variable is not used before
being defined (not a big deal in practice, since it expands to empty; but
better be consistent).

Reported by Akim Demaille.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am

index 16a0e408111974f837efa5999eeccad1e24ec94b..251d152420c91c5f3e1b4cf1e662b8eb9fcf720a 100644 (file)
@@ -50,6 +50,11 @@ am.chars.dquote := "
 am.chars.squote := '
 # "` # Fix font-lock.
 
+# An empty string.  It can be very useful to "fool" the make parser w.r.t.
+# whitespace handling, and allow us to obtain tricky semantics.  See the
+# definition of $(am.chars.newline) just below for a significant example.
+am.chars.empty :=
+
 # A literal newline character, that does not get stripped if used
 # at the end of the expansion of another macro.
 define am.chars.newline
@@ -143,11 +148,6 @@ am.make.dry-run := \
         $(findstring n,$v)))), \
     true, false))
 
-# An empty string.  It can be very useful to "fool" the make parser w.r.t.
-# whitespace handling, and allow us to obtain tricky semantics.  See the
-# definition of $(am.chars.newline) below for a significant example.
-am.chars.empty :=
-
 am.util.strip-first-word = $(wordlist 2,$(words $(1)),$(1))
 am.util.strip-last-word  = $(wordlist 2,$(words $(1)),dummy $(1))