diff mbox series

tools: pci: rm .*.cmd when make clean

Message ID 20240902041240.5475-1-zhangjiao2@cmss.chinamobile.com (mailing list archive)
State Accepted
Delegated to: Krzysztof Wilczyński
Headers show
Series tools: pci: rm .*.cmd when make clean | expand

Commit Message

zhangjiao2 Sept. 2, 2024, 4:12 a.m. UTC
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>

rm .*.cmd when make clean

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
 tools/pci/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Krzysztof Wilczyński Sept. 2, 2024, 2:12 p.m. UTC | #1
Hello,

> rm .*.cmd when make clean

Applied to misc, thank you!

[1/1] tools: PCI: Remove .*.cmd files with make clean
      https://git.kernel.org/pci/pci/c/f5383c543de0

	Krzysztof
diff mbox series

Patch

diff --git a/tools/pci/Makefile b/tools/pci/Makefile
index 57744778b518..f884471e07fe 100644
--- a/tools/pci/Makefile
+++ b/tools/pci/Makefile
@@ -42,7 +42,7 @@  $(OUTPUT)pcitest: $(PCITEST_IN)
 clean:
 	rm -f $(ALL_PROGRAMS)
 	rm -rf $(OUTPUT)include/
-	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
+	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
 
 install: $(ALL_PROGRAMS)
 	install -d -m 755 $(DESTDIR)$(bindir);		\