- @echo " Copying shared library"
- @cd $(WXBASEDIR)/lib/$(OS) ; \
- rm -f $(libdir)/$(SHARED_LIBRARY) ; \
- $(INSTALL_PROGRAM) $(SHARED_LIBRARY) $(libdir)/$(SHARED_LIBRARY) ; \
- $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so.$(LIB_MAJOR) ; \
- $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so
+ @if test -f $(WXBASEDIR)/lib/$(OS)/$(SHARED_LIBRARY) ; then \
+ echo " Copying shared library" ; \
+ cd $(WXBASEDIR)/lib/$(OS) ; \
+ rm -f $(libdir)/lib$(LIB_TARGET).so* ; \
+ $(INSTALL_PROGRAM) $(SHARED_LIBRARY) $(libdir)/$(SHARED_LIBRARY) ; \
+ $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so.$(LIB_MAJOR) ; \
+ $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so ; \
+ echo " " ; \
+ echo " You may have to run ldconfig!" ; \
+ echo " " ; \
+ fi