* tests/check.mk (.built-programs): Run cd'd submake in a subshell
so the redirected output ends up in the current directory, not ../src.
CLEANFILES += .built-programs
check-am: .built-programs
.built-programs:
- $(AM_V_GEN)cd $(top_builddir)/src \
- && MAKEFLAGS= $(MAKE) -s built_programs.list \
+ $(AM_V_GEN)(cd $(top_builddir)/src \
+ && MAKEFLAGS= $(MAKE) -s built_programs.list) \
> $@-t && mv $@-t $@
# Note that the first lines are statements. They ensure that environment