diff mbox series

[1/2] cpupower: Add 'uninstall' target for 'debug/i386' subproject

Message ID 20240625-add_uninstall-v1-1-ab031bbd98e6@gmail.com (mailing list archive)
State New
Delegated to: Shuah Khan
Headers show
Series cpupower: Add 'uninstall' targers for arch-related debug subprojects | expand

Commit Message

Roman Storozhenko June 25, 2024, 6:53 p.m. UTC
Add 'uninstall' target for the 'debug/i386' subproject.
The target removes binaries previously installed to the
'${DESTDIR}${bindir}' dir.

Signed-off-by: Roman Storozhenko <romeusmeister@gmail.com>
---
 tools/power/cpupower/debug/i386/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/power/cpupower/debug/i386/Makefile b/tools/power/cpupower/debug/i386/Makefile
index b3f771039b17..355f44dafa00 100644
--- a/tools/power/cpupower/debug/i386/Makefile
+++ b/tools/power/cpupower/debug/i386/Makefile
@@ -39,4 +39,10 @@  install:
 	$(INSTALL) $(OUTPUT)dump_psb $(DESTDIR)${bindir}
 	$(INSTALL) $(OUTPUT)intel_gsic $(DESTDIR)${bindir}
 
-.PHONY: all default clean install
+uninstall:
+	- rm -f $(DESTDIR)${bindir}/centrino-decode
+	- rm -f $(DESTDIR)${bindir}/powernow-k8-decode
+	- rm -f $(DESTDIR)${bindir}/dump_psb
+	- rm -f $(DESTDIR)${bindir}/intel_gsic
+
+.PHONY: all default clean install uninstall