tests: fix bug in preceding check.mk change
authorJim Meyering <meyering@redhat.com>
Thu, 10 Feb 2011 09:01:23 +0000 (10:01 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 10 Feb 2011 09:01:23 +0000 (10:01 +0100)
* tests/check.mk (.built-programs): Run cd'd submake in a subshell
so the redirected output ends up in the current directory, not ../src.

tests/check.mk

index b80dce8..1e3ca85 100644 (file)
@@ -44,8 +44,8 @@ CLEANFILES =
 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