# 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.
# 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))
## 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
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
# 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
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
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
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)' = ' '
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: