]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] rename: am__empty -> am.chars.empty
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 Jul 2012 11:44:28 +0000 (13:44 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 Jul 2012 11:56:24 +0000 (13:56 +0200)
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am
t/clean-many.sh
t/clean-many2.sh
t/dist-many.sh
t/dist-many2.sh
t/memoize.tap

index c6ad4d355e78b87b2876aa16832e7fd118e9f629..23e9987ccd3f8d8887dfacd6c2d022754c79b75e 100644 (file)
@@ -54,7 +54,7 @@ am.chars.squote := '
 # at the end of the expansion of another macro.
 define am__newline
 
-$(am__empty)
+$(am.chars.empty)
 endef
 
 ## Makefiles generated by Automake-NG require GNU make >= 3.81.
@@ -146,7 +146,7 @@ am__make_dryrun := \
 # 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__newline) below for a significant example.
-am__empty :=
+am.chars.empty :=
 
 am__strip_firstword = $(wordlist 2,$(words $(1)),$(1))
 am__strip_lastword  = $(wordlist 2,$(words $(1)),dummy $(1))
@@ -163,7 +163,7 @@ am__uniq = $(strip \
 ## And append the last element, unless it was already present.
       $(if $(filter $(lastword $(1)), \
                     $(call am__strip_lastword, $(1))), \
-           $(am__empty), \
+           $(am.chars.empty), \
            $(lastword $(1)))))
 
 ?HANDLE-EXEEXT?am__handle_exeext := yes
index 3f3d9a7395f7b1a82bcf31a5fd5d0a37675b6c01..81bf83715d8e1f87775ec186a1152c1ead549595 100755 (executable)
@@ -49,11 +49,11 @@ while test $i -le 17; do
   cat t t > t2
   mv -f t2 t
 done
-(echo 'files = \' && sed 's/$/ \\/' t && echo '$(am__empty)') > files.mk
+(echo 'files = \' && sed '$!s/$/ \\/' t) > files.mk
 rm -f t
 
-# 2^17 + 2 = 131074.
-test $(wc -l <files.mk) -eq 65538 || fatal_ "populating 'files.mk'"
+# 2^17 + 1 = 65537.
+test $(wc -l <files.mk) -eq 65537 || fatal_ "populating 'files.mk'"
 
 touch foo bar
 $MAKE maintainer-clean
index e7505be55593961460ceeb868a47ab82581784ac..61284ed4a738680b716efa5e231aa70756db7729 100755 (executable)
@@ -59,7 +59,7 @@ done
 # Sanity check.
 rm -f $(cat t) && fatal_ "setting up 'rm' wrapper"
 
-(echo 'files = \' && sed 's/$/ \\/' t && echo '$(am__empty)') >files.am
+(echo 'files = \' && sed '$!s/$/ \\/' t) >files.am
 rm -f t
 
 $ACLOCAL
index e006c016c0742bb9d5228fa88e2695bc0ef663ac..3fd0cb4fb5d22d691c1c9a7e31e070c3dd945674 100755 (executable)
@@ -49,11 +49,10 @@ while test $i -le $count; do
 done > t
 set -x # Re-enable shell traces.
 echo 'EXTRA_DIST = \'   >> Makefile.am
-sed 's/$/ \\/' t        >> Makefile.am
-echo '$(am__empty)'     >> Makefile.am
+sed '$!s/$/ \\/' t      >> Makefile.am
 rm -f t
 
-test $(wc -l <Makefile.am) -eq $(( 2 + (3 * $count) )) \
+test $(wc -l <Makefile.am) -eq $(( 1 + (3 * $count) )) \
   || fatal_ "populating 'EXTRA_DIST'"
 
 $ACLOCAL
index cd39a7198e525d42a8054d8253855d784380f791..90c527b40150839803f8fa4834b6cb4fefb561a4 100755 (executable)
@@ -86,11 +86,10 @@ while test $i -le $count; do
 done > t
 set -x # Re-enable shell traces.
 echo 'EXTRA_DIST = \'   >> Makefile.am
-sed 's/$/ \\/' t        >> Makefile.am
-echo '$(am__empty)'     >> Makefile.am
+sed '$!s/$/ \\/' t      >> Makefile.am
 rm -f t
 
-test $(wc -l <Makefile.am) -eq $(( 2 + (3 * $count) )) \
+test $(wc -l <Makefile.am) -eq $(( 1 + (3 * $count) )) \
   || fatal_ "populating 'EXTRA_DIST'"
 
 $ACLOCAL
index a89515bcc3c874cc482a77a08e583d04569720f7..6d5eda414c3cb70dbd8638ebe50736b1bada725e 100755 (executable)
@@ -63,7 +63,7 @@ END
 
 T "variables expanding to blanks only (1)" <<'END'
 
-foo = $(call am__memoize,foo,$(am__empty) )
+foo = $(call am__memoize,foo,$(am.chars.empty) )
 
 test:
        test '$(foo)' = ' '
@@ -74,7 +74,7 @@ END
 
 T "variables expanding to blanks only (2)" <<END
 
-blank = \$(am__empty) $tab$tab   \$(am__empty)
+blank = \$(am.chars.empty) $tab$tab   \$(am.chars.empty)
 foo = \$(call am__memoize,foo,\$(blank))
 
 test: