Commit 47552faf98e99c07682fc80469ad15e2140427c5

Authored by Jürgen Knödlseder
1 parent 3c44d1c1

Properly uninstall symbolic links to cscripts

Showing 1 changed file with 7 additions and 3 deletions
cscripts/Makefile.am
@@ -184,6 +184,13 @@ install-data-hook: @@ -184,6 +184,13 @@ install-data-hook:
184 chmod +x "$(DESTDIR)$(pyexecdir)/cscripts/$$p.py"; \ 184 chmod +x "$(DESTDIR)$(pyexecdir)/cscripts/$$p.py"; \
185 done 185 done
186 186
  187 +# Uninstall hook rule to remove the symbolic links for cscripts
  188 +uninstall-hook:
  189 + @linklist='$(linkscripts)';\
  190 + for p in $$linklist; do \
  191 + rm -rf "$(DESTDIR)$(bindir)/$$p"; \
  192 + done
  193 +
187 # Files to be removed in build directory 194 # Files to be removed in build directory
188 clean-local: 195 clean-local:
189 @if test '@srcdir@' != '@builddir@'; then \ 196 @if test '@srcdir@' != '@builddir@'; then \
@@ -201,6 +208,3 @@ uninstall-local: @@ -201,6 +208,3 @@ uninstall-local:
201 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/__pycache__ 208 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/__pycache__
202 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/*.pyc 209 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/*.pyc
203 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/__pycache__ 210 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/__pycache__
204 - for p in $$linklist; do \  
205 - rm -rf "$(DESTDIR)$(bindir)/$$p"; \  
206 - done