* automake.in (generate_makefile): In here, about the generated
Makefile baling out if '$(am__seen_error)' has been set by some
previous function call.

Signed-off-by: Stefano Lattarini <stefano.lattar...@gmail.com>
---
 automake.in |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/automake.in b/automake.in
index 197945a..08637c0 100644
--- a/automake.in
+++ b/automake.in
@@ -6982,7 +6982,10 @@ sub generate_makefile ($$)
   # See if any _SOURCES (or _LIBADD, or ...) variable were misspelled.
   $output_checks .= preprocess_file ("$libdir/am/check-typos.am",
                                      MAKEFILE => basename ($makefile));
-  # Report errors (if any) seen at make runtime.
+  # Bail out if we have encountered errors at make runtime.  The
+  # relevant diagnostic should have already been reported by any
+  # call to the function '$(am.error)', so we just print a generic
+  # "errors seen, stopping" message.
   $output_checks .= '$(if $(am__seen_error),' .
                     '$(error Some Automake-NG error occurred))' .
                     "\n";
-- 
1.7.10.4


Reply via email to