selftests/powerpc: Fix the clean rule since recent changes
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 9 Feb 2017 08:56:29 +0000 (19:56 +1100)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 14 Feb 2017 15:02:20 +0000 (08:02 -0700)
The clean rule is broken for the powerpc tests:

  make[1]: Entering directory 'tools/testing/selftests/powerpc'
  Makefile:63: warning: overriding recipe for target 'clean'
  ../lib.mk:51: warning: ignoring old recipe for target 'clean'
  /bin/sh: 3: Syntax error: end of file unexpected (expecting "done")
  Makefile:63: recipe for target 'clean' failed

Fixes: a8ba798bc8ec ("selftests: enable O and KBUILD_OUTPUT")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/powerpc/Makefile

index 1d48c0cab5962f9b02f7437df3fb80aa99b6f32a..1c5d0575802e47113b49b4b0facfd7bff47a6620 100644 (file)
@@ -62,7 +62,8 @@ endef
 clean:
        @for TARGET in $(SUB_DIRS); do \
                BUILD_TARGET=$$OUTPUT/$$TARGET; \
-               $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean;\ done;
+               $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean; \
+       done;
        rm -f tags
 
 tags: