git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] gitk-git: have make uninstall also remove empty directories

From
JNJan Nieuwenhuizen <janneke-list@xs4all.nl>
Date
Dec 8, 2009, 15:23 UTC
Message-ID
<1260285834.1856.53.camel@vuurvlieg>

The default Git install performs a multi-rooted install in $HOME, which makes manual removal somewhat cumbersome.

The directories created by the installation should be removed if they are empty.

Signed-off-by: Jan Nieuwenhuizen <janneke@gnu.org>
---
 gitk-git/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gitk-git/Makefile b/gitk-git/Makefile
index e1b6045..d68f19a 100644
--- a/gitk-git/Makefile
+++ b/gitk-git/Makefile
@@ -47,6 +47,8 @@ install:: all
 uninstall::
 	$(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true
 	$(RM) '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
+	-rmdir -p '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
+	-rmdir -p '$(DESTDIR_SQ)$(msgsdir_SQ)'
 
 clean::
 	$(RM) gitk-wish po/*.msg
-- 
1.6.5.2.182.g1a756



-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
Avatar®: http://AvatarAcademy.nl    | http://lilypond.org
Message 1 of 1 in “gitk-git: have make uninstall also remove empty directories”
  1. 2/2 gitk-git: have make uninstall also remove empty directoriesJan Nieuwenhuizen, Dec 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.