summaryrefslogtreecommitdiffstats
path: root/source/Makefile.in
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-07 16:16:28 +0200
committerKarolin Seeger <kseeger@samba.org>2008-08-18 14:50:03 +0200
commitc72bedb09c22b40b228f5abe7b68d9993bff6023 (patch)
tree68a50fe3302fa22e1d89a8e04011f27ce9ba51c9 /source/Makefile.in
parentce7c42ffd632aa379b8166327d8e19510edc1711 (diff)
downloadsamba-c72bedb09c22b40b228f5abe7b68d9993bff6023.tar.gz
samba-c72bedb09c22b40b228f5abe7b68d9993bff6023.tar.xz
samba-c72bedb09c22b40b228f5abe7b68d9993bff6023.zip
build: fix installlibtalloc to not install symlink if the library is not there
Michael (cherry picked from commit 52ccb52c8e42e748fcc05337849945ddc30d5efa) (cherry picked from commit 512cf07187c33f17e1724d345fffb4f813fa8768)
Diffstat (limited to 'source/Makefile.in')
-rw-r--r--source/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Makefile.in b/source/Makefile.in
index 772d124a793..5f0cb0c2f80 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -1621,7 +1621,10 @@ installlibtalloc:: installdirs libtalloc
@$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
-$(INSTALLLIBCMD_SH) $(LIBTALLOC_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
@rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
- -ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)`
+ -if test -e $(LIBTALLOC_SHARD_TARGET_SONAME) ; then \
+ ln -s -f `basename $(LIBTALLOC_SHARED_TARGET_SONAME)` \
+ $(DESTDIR)$(LIBDIR)/`basename $(LIBTALLOC_SHARED_TARGET)` ; \
+ fi
-$(INSTALLLIBCMD_A) $(LIBTALLOC_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
@$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
-$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBTALLOC_HEADERS) $(DESTDIR)${prefix}/include