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 184 chmod +x "$(DESTDIR)$(pyexecdir)/cscripts/$$p.py"; \
185 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 194 # Files to be removed in build directory
188 195 clean-local:
189 196 @if test '@srcdir@' != '@builddir@'; then \
... ... @@ -201,6 +208,3 @@ uninstall-local:
201 208 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/__pycache__
202 209 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/*.pyc
203 210 rm -rf $(DESTDIR)$(pyexecdir)/cscripts/tests/__pycache__
204   - for p in $$linklist; do \
205   - rm -rf "$(DESTDIR)$(bindir)/$$p"; \
206   - done
... ...