- for f in libwx_gtk.so* ; do \
- rm -f /usr/local/lib/$$f ; \
- $(INSTALL_PROGRAM) $$f /usr/local/lib/$$f ; \
- done
+ rm -f $(libdir)/$(STATIC_LIBRARY) ; \
+ $(INSTALL_DATA) $(STATIC_LIBRARY) $(libdir)/$(STATIC_LIBRARY)
+ @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
+ @echo " "
+ @echo "Installation complete."
+ @echo " "