summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-06 21:14:17 +0200
committerMichael Adam <obnox@samba.org>2008-07-07 20:34:01 +0200
commitaedb019d65a105ff39880dcaa0914142de8e6cc5 (patch)
treea1a703afd2ec2bd3413c34fabb568fe203e8ed33
parentc3bdfeade265e74e3ab2872b65c56315cd0dfcd0 (diff)
downloadsamba-aedb019d65a105ff39880dcaa0914142de8e6cc5.tar.gz
samba-aedb019d65a105ff39880dcaa0914142de8e6cc5.tar.bz2
samba-aedb019d65a105ff39880dcaa0914142de8e6cc5.zip
build: fix the installlibwbclient target to use defined variables and install the symlink
Michael (This used to be commit 922b136ada1c502edcbbb89e9cca155cd6ad376c)
-rw-r--r--source3/Makefile.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 593b8897ae..dbec0f3da4 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -1719,9 +1719,14 @@ libwbclient: $(LIBWBCLIENT)
installlibwbclient:: installdirs libwbclient
@$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
- -$(INSTALLLIBCMD_SH) bin/libwbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
+ -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
+ @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
+ -if test -e $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
+ ln -s -f `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
+ $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
+ fi
@$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
- -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/nsswitch/libwbclient/wbclient.h $(DESTDIR)${prefix}/include
+ -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
#-------------------------------------------------------------------