]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] $(am__newline): will not be stripped unexpectedly
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 7 Jul 2012 18:45:52 +0000 (20:45 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 9 Jul 2012 14:21:40 +0000 (16:21 +0200)
Not even if placed at the end of another macro's expansion.

* lib/am/header-vars.am (am__newline): Improve definition, and
update comments.
* t/internals.sh: Update: some previously xfailing checks are
now passing.

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

index d7afe6fac173e18c16cffa9d62fa43e9e422da81..0549eaa191da3d2cc1c6e70f2d6ef53a5ba4d692 100644 (file)
@@ -50,9 +50,11 @@ am__dquote := "
 am__squote := '
 # "` # Fix font-lock.
 
+# A literal newline character, that does not get stripped if used
+# at the end of the expansion of another macro.
 define am__newline
 
-
+$(am__empty)
 endef
 
 ## Makefiles generated by Automake-NG require GNU make >= 3.81.
@@ -264,7 +266,7 @@ am__strip_suffixes = $(strip \
 ## FIXME: length limits, or at least on a system-by-system basis, might
 ## FIXME: be better.  But don't make it too big, or our implementation
 ## FIXME: will likely suffer in performance and memory consumption.
-# And in the Information Age, we somehow managed to revert an abacus-like
+# And in the Information Age, we somehow managed to revert to abacus-like
 # counting.  Yay for us :-)
 am.max-cmdline-args := xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
index c94163c481dd51b87d410225a2c247dcd329cb62..1012be6a6db09c40a07ee23dd13c46d7b94c7e89 100755 (executable)
@@ -193,7 +193,7 @@ command_ok_  am__tolower                $MAKE test-tolower
 command_ok_  am__toupper                $MAKE test-toupper
 command_ok_  am__canon                  $MAKE test-canonicalize
 command_ok_  "am__newline (1)"          $MAKE test-newline-1
-command_ok_  "am__newline (2)" -D TODO  $MAKE test-newline-2
-command_ok_  "am__newline (3)" -D TODO  $MAKE test-newline-3
+command_ok_  "am__newline (2)"          $MAKE test-newline-2
+command_ok_  "am__newline (3)"          $MAKE test-newline-3
 
 :