aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install-lib-links.mk6
-rw-r--r--src/gallium/targets/dri/Makefile.am6
-rw-r--r--src/mesa/drivers/dri/Makefile.am6
3 files changed, 18 insertions, 0 deletions
diff --git a/install-lib-links.mk b/install-lib-links.mk
index 5ea73853707..6976ca4911a 100644
--- a/install-lib-links.mk
+++ b/install-lib-links.mk
@@ -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
diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am
index 74fb2d6171f..da1d1ed0eb5 100644
--- a/src/gallium/targets/dri/Makefile.am
+++ b/src/gallium/targets/dri/Makefile.am
@@ -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
diff --git a/src/mesa/drivers/dri/Makefile.am b/src/mesa/drivers/dri/Makefile.am
index bdefe43cb6a..0c677a0eb18 100644
--- a/src/mesa/drivers/dri/Makefile.am
+++ b/src/mesa/drivers/dri/Makefile.am
@@ -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