summaryrefslogtreecommitdiff
path: root/install-lib-links.mk
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-12-07 11:30:58 -0800
committerMatt Turner <mattst88@gmail.com>2014-12-12 12:11:49 -0800
commitb662d5282f77bec415ff430b94a5eb925d3f74e2 (patch)
tree1e1294a8538b0c620af86f4406e2f6cf53b02053 /install-lib-links.mk
parent8e2577f2a9289417706bf190c5f12f33d2628b68 (diff)
mesa: Add clean-local rule to remove .lib links.
Diffstat (limited to 'install-lib-links.mk')
-rw-r--r--install-lib-links.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/install-lib-links.mk b/install-lib-links.mk
index 5ea7385370..6976ca4911 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