-rm -rf libsilc.a
-rm -rf libsilcclient.a
+if SILC_DIST_CLIENT
+install-exec-hook:
+ -mkdir -p $(libdir)
+ # Install libraries only if static were not compiled. Assume
+ # that shared is wanted only if binary is not static.
+ -@if test '!' -f $(top_srcdir)/lib/.libs/libsilc.a ; then \
+ $(LIBTOOL) $(INSTALL) libsilc.la $(libdir)/ \
+ fi
+ -@if test '!' -f $(top_srcdir)/lib/.libs/libsilcclient.a ; then \
+ $(LIBTOOL) $(INSTALL) libsilcclient.la $(libdir)/ \
+ fi
+else
install-exec-hook:
-mkdir -p $(libdir)
-$(LIBTOOL) $(INSTALL) libsilc.la $(libdir)/
-$(LIBTOOL) $(INSTALL) libsilcclient.la $(libdir)/
+endif
if SILC_DIST_WIN32DLL
# WIN32 DLL generation