git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Uninstall rule for top level Makefile
@ 2006-12-11 22:14 Andy Parkins
  2006-12-12 12:25 ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Parkins @ 2006-12-11 22:14 UTC (permalink / raw)
  To: git

Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
 Makefile |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index a1861de..51c1747 100644
--- a/Makefile
+++ b/Makefile
@@ -821,6 +821,20 @@ install-doc:
 	$(MAKE) -C Documentation install
 
 
+### Uninstallation rules
+
+uninstall:
+	rm -f $(subst %,$(DESTDIR_SQ)$(gitexecdir_SQ)/%,$(ALL_PROGRAMS))
+	rm -f '$(DESTDIR_SQ)$(bindir_SQ)/git$X'
+	rm -f '$(DESTDIR_SQ)$(bindir_SQ)/gitk'
+	$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' uninstall
+	$(MAKE) -C perl uninstall
+	if test 'z$(bindir_SQ)' != 'z$(gitexecdir_SQ)'; \
+	then \
+		rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'
+		rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
+	fi
+	$(foreach p,$(BUILT_INS), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)
 
 
 ### Maintainer's dist rules
-- 
1.4.4.1.geeee8

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-12 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-11 22:14 [PATCH] Uninstall rule for top level Makefile Andy Parkins
2006-12-12 12:25 ` Johannes Schindelin
2006-12-12 12:51   ` Andy Parkins
2006-12-12 14:15     ` Johannes Schindelin
2006-12-12 15:42       ` Andy Parkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).