From 47552faf98e99c07682fc80469ad15e2140427c5 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Mon, 11 Jul 2016 17:42:35 +0200 Subject: [PATCH] Properly uninstall symbolic links to cscripts --- cscripts/Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cscripts/Makefile.am b/cscripts/Makefile.am index 909952c..f77b553 100644 --- a/cscripts/Makefile.am +++ b/cscripts/Makefile.am @@ -184,6 +184,13 @@ install-data-hook: chmod +x "$(DESTDIR)$(pyexecdir)/cscripts/$$p.py"; \ done +# Uninstall hook rule to remove the symbolic links for cscripts +uninstall-hook: + @linklist='$(linkscripts)';\ + for p in $$linklist; do \ + rm -rf "$(DESTDIR)$(bindir)/$$p"; \ + done + # Files to be removed in build directory clean-local: @if test '@srcdir@' != '@builddir@'; then \ @@ -201,6 +208,3 @@ uninstall-local: rm -rf $(DESTDIR)$(pyexecdir)/cscripts/__pycache__ rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/*.pyc rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/__pycache__ - for p in $$linklist; do \ - rm -rf "$(DESTDIR)$(bindir)/$$p"; \ - done -- libgit2 0.21.4