From 3b7bcb5d04abf7c133b57e0d3647e8896ee23170 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 7 Dec 2014 00:12:29 -0800 Subject: [PATCH] dri: Add uninstall hooks to handle megadriver hardlinks. --- src/gallium/targets/dri/Makefile.am | 5 +++++ src/mesa/drivers/dri/Makefile.am | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index 009153594a9..74fb2d6171f 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -131,3 +131,8 @@ install-data-hook: $(DESTDIR)$(dridir)/$${i}_dri.so; \ done; \ $(RM) -f $(DESTDIR)$(dridir)/gallium_dri.* + +uninstall-hook: + for i in $(TARGET_DRIVERS); do \ + $(RM) -f $(DESTDIR)$(dridir)/$${i}_dri.so; \ + done; diff --git a/src/mesa/drivers/dri/Makefile.am b/src/mesa/drivers/dri/Makefile.am index d63425d6c6c..bdefe43cb6a 100644 --- a/src/mesa/drivers/dri/Makefile.am +++ b/src/mesa/drivers/dri/Makefile.am @@ -88,4 +88,9 @@ install-data-hook: done; $(RM) -f $(DESTDIR)$(dridir)/mesa_dri_drivers.* +uninstall-hook: + for i in $(MEGADRIVERS); do \ + $(RM) -f $(DESTDIR)$(dridir)/$$i; \ + done; + endif -- 2.30.2