targets/vdpau: Add uninstall hooks to handle megadriver hardlinks.
authorMatt Turner <mattst88@gmail.com>
Wed, 17 Dec 2014 20:40:30 +0000 (12:40 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 18 Dec 2014 01:54:33 +0000 (17:54 -0800)
src/gallium/targets/vdpau/Makefile.am

index 6ac4905de0ae8c9b80645b996a15fb169736467a..32b34011b13959d04eeb68bf0b5397e63b796202 100644 (file)
@@ -119,3 +119,8 @@ install-data-hook:
                       $${dest_dir}/$${k};                              \
        done;                                                           \
        $(RM) -f $${dest_dir}/libvdpau_gallium.*
+
+uninstall-hook:
+       for i in $(TARGET_DRIVERS); do                                  \
+               $(RM) $(DESTDIR)$(vdpaudir)/libvdpau_$${i}.so{,.$(VDPAU_MAJOR){,.$(VDPAU_MINOR){,.0}}}; \
+       done;