spi: spidev_test: Remove hidden temporary file when make clean
[linux-2.6-microblaze.git] / tools / spi / Makefile
index 2249a15..ada881a 100644 (file)
@@ -52,7 +52,9 @@ $(OUTPUT)spidev_fdx: $(SPIDEV_FDX_IN)
 clean:
        rm -f $(ALL_PROGRAMS)
        rm -rf $(OUTPUT)include/
-       find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
+       find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete
+       find $(if $(OUTPUT),$(OUTPUT),.) -name '\.*.o.d' -delete
+       find $(if $(OUTPUT),$(OUTPUT),.) -name '\.*.o.cmd' -delete
 
 install: $(ALL_PROGRAMS)
        install -d -m 755 $(DESTDIR)$(bindir);          \