build: Let install-lib-links.mk handle .la files in subdirectories.
authorMatt Turner <mattst88@gmail.com>
Thu, 14 Aug 2014 23:07:26 +0000 (16:07 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 19 Aug 2014 01:22:40 +0000 (18:22 -0700)
commit4ccd2a9f9b0813887716d38321829175459665e0
treea1d025723d9a64c0d9e60bc7526608ad29673610
parent45eb06566830eb49551c27262cdd936bf42ec922
build: Let install-lib-links.mk handle .la files in subdirectories.

The next patches are going to combine some of the mapi subdirectories'
Makefiles into a single Makefile, giving better build parallelism.

lib_LTLIBRARIES will be set to something like

   lib_LTLIBRARIES = shared-glapi/libglapi.la es2api/libGLESv2.la

and the current code in install-lib-links.mk simply prepends .libs/ and
replaces the .la in order to create the filenames that it needs to ln/cp
into the LIBDIR. This doesn't work when the .la file is actually in a
subdirectory.

This patch fixes this and puts .libs/ in the right place.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
install-lib-links.mk