[PATCH] Uninstall rule for top level Makefile
Signed-off-by: Andy Parkins <andyparkins@gmail.com> --- Makefile | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
Show changes to Makefile +14 −0
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