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

index cb39722cc841a1959649433288e13563cddefe08..a7b3365e2f0a46f9f4c8adf6824f63b1972a3794 100644 (file)
@@ -82,3 +82,8 @@ install-data-hook:
                       $${dest_dir}/$${k};                              \
        done;                                                           \
        $(RM) -f $${dest_dir}/libXvMCgallium.*
+
+uninstall-hook:
+       for i in $(TARGET_DRIVERS); do                                  \
+               $(RM) $(DESTDIR)$(xvmcdir)/libXvMC$${i}.so{,.$(XVMC_MAJOR){,.$(XVMC_MINOR){,.0}}}; \
+       done;