install-lib-links: don't depend on .libs directory
authorLucas Stach <l.stach@pengutronix.de>
Thu, 19 Feb 2015 13:52:49 +0000 (14:52 +0100)
committerMatt Turner <mattst88@gmail.com>
Thu, 19 Feb 2015 18:02:02 +0000 (10:02 -0800)
This snippet can be included in Makefiles that may, depending on the
project configuration, not actually build any installable libraries.

In that case we don't have anything to depend on and this part of
the makefile may be executed before the .libs directory is created,
so do not depend on it being there.

Cc: "10.3 10.4 10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
install-lib-links.mk

index 6976ca4911ab7ba680d56f5954cc9b8c6debb91c..3545b268ebd19afd0ec4c909162f93e1fead331f 100644 (file)
@@ -3,9 +3,9 @@
 
 if BUILD_SHARED
 if HAVE_COMPAT_SYMLINKS
-all-local : .libs/install-mesa-links
+all-local : .install-mesa-links
 
-.libs/install-mesa-links : $(lib_LTLIBRARIES)
+.install-mesa-links : $(lib_LTLIBRARIES)
        $(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR);       \
        for f in $(join $(addsuffix .libs/,$(dir $(lib_LTLIBRARIES))),$(notdir $(lib_LTLIBRARIES:%.la=%.$(LIB_EXT)*))); do \
                if test -h .libs/$$f; then                      \