mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roman Storozhenko <romeusmeister@gmail.com>
To: Thomas Renninger <trenn@suse.com>, Shuah Khan <shuah@kernel.org>
Cc: linux-pm@vger.kernel.org,
	 Javier Carrasco <javier.carrasco.cruz@gmail.com>,
	 linux-kernel@vger.kernel.org,
	Roman Storozhenko <romeusmeister@gmail.com>
Subject: [PATCH 2/2] cpupower: Add 'uninstall' target for 'debug/x86_64' subproject
Date: Tue, 25 Jun 2024 20:53:56 +0200	[thread overview]
Message-ID: <20240625-add_uninstall-v1-2-ab031bbd98e6@gmail.com> (raw)
In-Reply-To: <20240625-add_uninstall-v1-0-ab031bbd98e6@gmail.com>

Add 'uninstall' target for the 'debug/x86_64' subproject.
The target removes binaries previously installed to the
'${DESTDIR}${bindir}' dir.

Signed-off-by: Roman Storozhenko <romeusmeister@gmail.com>
---
 tools/power/cpupower/debug/x86_64/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/power/cpupower/debug/x86_64/Makefile b/tools/power/cpupower/debug/x86_64/Makefile
index b1b6c43644e7..37fd414835b8 100644
--- a/tools/power/cpupower/debug/x86_64/Makefile
+++ b/tools/power/cpupower/debug/x86_64/Makefile
@@ -28,4 +28,8 @@ install:
 	$(INSTALL) $(OUTPUT)centrino-decode $(DESTDIR)${bindir}
 	$(INSTALL) $(OUTPUT)powernow-k8-decode $(DESTDIR)${bindir}
 
-.PHONY: all default clean install
+uninstall:
+	- rm -f $(DESTDIR)${bindir}/centrino-decode
+	- rm -f $(DESTDIR)${bindir}/powernow-k8-decode
+
+.PHONY: all default clean install uninstall

-- 
2.34.1


  parent reply	other threads:[~2024-06-25 18:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25 18:53 [PATCH 0/2] cpupower: Add 'uninstall' targers for arch-related debug subprojects Roman Storozhenko
2024-06-25 18:53 ` [PATCH 1/2] cpupower: Add 'uninstall' target for 'debug/i386' subproject Roman Storozhenko
2024-06-25 18:53 ` Roman Storozhenko [this message]
2024-06-28 21:49 ` [PATCH 0/2] cpupower: Add 'uninstall' targers for arch-related debug subprojects Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240625-add_uninstall-v1-2-ab031bbd98e6@gmail.com \
    --to=romeusmeister@gmail.com \
    --cc=javier.carrasco.cruz@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=shuah@kernel.org \
    --cc=trenn@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®