targets/vdpau: Add clean-local rule to remove .lib links.
authorMatt Turner <mattst88@gmail.com>
Wed, 17 Dec 2014 20:39:59 +0000 (12:39 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 18 Dec 2014 01:54:33 +0000 (17:54 -0800)
src/gallium/targets/vdpau/Makefile.am

index f9a8d236f39e1d82afd48c4c8e3860de93a15110..6ac4905de0ae8c9b80645b996a15fb169736467a 100644 (file)
@@ -93,6 +93,12 @@ all-local: $(vdpau_LTLIBRARIES)
                ln -sf $${l}                                            \
                       $${link_dir}/$${k};                              \
        done
+
+clean-local:
+       $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium;         \
+       $(AM_V_GEN)for i in $(TARGET_DRIVERS); do                       \
+               $(RM) $${link_dir}/libvdpau_$${i}.so{,.$(VDPAU_MAJOR){,.$(VDPAU_MINOR){,.0}}}; \
+       done;
 endif
 
 # hardlink each megadriver instance, but don't actually have