mesa: Add clean-local rule to remove .lib links.
authorMatt Turner <mattst88@gmail.com>
Sun, 7 Dec 2014 19:30:58 +0000 (11:30 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 12 Dec 2014 20:11:49 +0000 (12:11 -0800)
install-lib-links.mk
src/gallium/targets/dri/Makefile.am
src/mesa/drivers/dri/Makefile.am

index 5ea738537070b34dfcf2424a452aae3bb6593f5e..6976ca4911ab7ba680d56f5954cc9b8c6debb91c 100644 (file)
@@ -14,5 +14,11 @@ all-local : .libs/install-mesa-links
                        ln -f $$f $(top_builddir)/$(LIB_DIR);   \
                fi;                                             \
        done && touch $@
+
+clean-local:
+       for f in $(notdir $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*)); do \
+               $(RM) $(top_builddir)/$(LIB_DIR)/$$f;   \
+       done;
+
 endif
 endif
index 74fb2d6171fcaefc1117c8a0a695e8d558aa013d..da1d1ed0eb520cbf58d15950fa9787f2ae484dc5 100644 (file)
@@ -121,6 +121,12 @@ all-local: $(dri_LTLIBRARIES)
                ln -f .libs/gallium_dri.so                              \
                        $${link_dir}/$${i}_dri.so;                      \
        done
+
+clean-local:
+       $(AM_V_GEN)link_dir=$(top_builddir)/$(LIB_DIR)/gallium;         \
+       $(AM_V_GEN)for i in $(TARGET_DRIVERS); do                       \
+               $(RM) -f $${link_dir}/$${i}_dri.so;                     \
+       done;
 endif
 
 # hardlink each megadriver instance, but don't actually have
index bdefe43cb6ad6782f6b8f28055fe98d82762181b..0c677a0eb18c6a5eb906ade11dbfbeb3605cf068 100644 (file)
@@ -77,6 +77,12 @@ all-local: mesa_dri_drivers.la
                ln -f $(top_builddir)/$(LIB_DIR)/mesa_dri_drivers.so \
                      $(top_builddir)/$(LIB_DIR)/$$i; \
        done;
+
+clean-local:
+       $(AM_V_GEN)$(RM) $(top_builddir)/$(LIB_DIR)/mesa_dri_drivers.so;
+       $(AM_V_GEN)for i in $(MEGADRIVERS); do \
+               $(RM) -f $(top_builddir)/$(LIB_DIR)/$$i; \
+       done;
 endif
 
 # hardlink each megadriver instance, but don't actually have