dri: Add uninstall hooks to handle megadriver hardlinks.
authorMatt Turner <mattst88@gmail.com>
Sun, 7 Dec 2014 08:12:29 +0000 (00:12 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 12 Dec 2014 20:11:49 +0000 (12:11 -0800)
src/gallium/targets/dri/Makefile.am
src/mesa/drivers/dri/Makefile.am

index 009153594a9798c0ae40a9eb9ac91bdefcfe5ebc..74fb2d6171fcaefc1117c8a0a695e8d558aa013d 100644 (file)
@@ -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;
index d63425d6c6c19027b0417f97b30e1d99138e7dcf..bdefe43cb6ad6782f6b8f28055fe98d82762181b 100644 (file)
@@ -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