]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix spurious failure in test on Flex headers
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 28 Aug 2012 09:52:45 +0000 (11:52 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 28 Aug 2012 09:52:45 +0000 (11:52 +0200)
* t/lex-headers.sh: Don't use 'yl_distcheck', simply call "make distcheck"
instead, as GNU make cannot suffer of the FreeBSD bug 'yl_distcheck' was
meant to guard against.
(Makefile.am): Don't use $(AM_MAKEFLAGS) when invoking make recursively.
This avoids a maintainer-check failure.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/lex-header.sh

index f8d7333e64e77f91acab6f488abc65fc73c4ea48..a0a57dfddd9e863bd59fcf77b5c3537e9baad0ef 100755 (executable)
@@ -34,7 +34,7 @@ BUILT_SOURCES = mylex.h
 # Recover from removal of header.
 mylex.h: foo-lexer.c
        test -f $@ || rm -f foo-lexer.c
-       test -f $@ || $(MAKE) $(AM_MAKEFLAGS) foo-lexer.c
+       test -f $@ || $(MAKE) foo-lexer.c
 END
 
 cat > lexer.l << 'END'
@@ -81,6 +81,6 @@ $MAKE
 test -f mylex.h
 
 # Sanity check on distribution.
-yl_distcheck
+$MAKE distcheck
 
 :