* t/distcheck-pr18286.sh: Slightly simplify and tighten by assuming
that $MAKE is GNU make.
* lib/am/configure.am: Use $(am.chars.empty) rather than $(am__empty)
for the internal variable always expansing to the empty string.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
esac;
## Avoid the "deleted header file" problem for the dependencies.
-## Add the trailing "$(am__empty)" to trick Automake into not spuriously
+## Add the trailing "$(am.chars.empty)" to trick Automake into not spuriously
## complaining about "duplicated targets" in case the %MAKEFILE-IN-DEPS%
## list expands to a single target that is also declared in some
## user-defined rule.
-?HAVE-MAKEFILE-IN-DEPS?%MAKEFILE-IN-DEPS% $(am__empty):
+?HAVE-MAKEFILE-IN-DEPS?%MAKEFILE-IN-DEPS% $(am.chars.empty):
am.dist.common-files += $(am.relpath.makefile.am)
$MAKE check
# Oops, we failed to distribute some required files!
-run_make -e FAIL -M distcheck
-$FGREP '../../test_data.txt' output
+run_make -e FAIL -E distcheck
+$FGREP '../../test_data.txt' stderr
# But if we distribute them, everything will be OK.
echo 'EXTRA_DIST = test_data.txt gen-testdata.sh' >> Makefile.am
-using_gmake || $MAKE Makefile
$MAKE distcheck
: