Kristian Høgsberg | cbecd95 | 2014-01-29 11:40:25 -0800 | [diff] [blame] | 1 | # Provide compatibility with scripts for the old Mesa build system for |
| 2 | # a while by putting a link to the driver into /lib of the build tree. |
| 3 | |
| 4 | all-local : .libs/install-mesa-links |
| 5 | |
| 6 | .libs/install-mesa-links : $(lib_LTLIBRARIES) |
Emil Velikov | b496ab0 | 2014-03-03 03:04:38 +0000 | [diff] [blame^] | 7 | $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \ |
Kristian Høgsberg | cbecd95 | 2014-01-29 11:40:25 -0800 | [diff] [blame] | 8 | for f in $(lib_LTLIBRARIES:%.la=.libs/%.so*); do \ |
| 9 | if test -h .libs/$$f; then \ |
| 10 | cp -d $$f $(top_builddir)/$(LIB_DIR); \ |
| 11 | else \ |
| 12 | ln -f $$f $(top_builddir)/$(LIB_DIR); \ |
| 13 | fi; \ |
| 14 | done && touch $@ |