Alexandre Duret-Lutz wrote:

"sashan" == sashan <[EMAIL PROTECTED]> writes:



sashan> Hi sashan> How do I execute a copy (cp) of some files once they are generated by sashan> automake. The situation is I have a automake/autoconf/libtool sashan> generated library that is loadable by python. libtool generates this sashan> library and places it in <project-name>/.libs/lib<name>.so.0.0.0. What sashan> I want to do is copy the file lib<name>.so.0.0.0 into a directory of sashan> my choosing after the build process of it is completed. Any sashan> suggestions?

Other than copying files, you might consider using James
Henstridge's ltihooks.py to import libtool libraries directly
from Python.  You can find ltihooks.py in pygtk.  I'm using it
in Spot (spot.lip6.fr) to load Swig generated libtool modules.



My personnal solution for the same swig/python situation is to use install-hooks:

install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(pyexecdir)
$(install_sh_PROGRAM) $(DESTDIR)$(libdir)/libfoo.so $(DESTDIR)$(pyexecdir)/_foo.so
$(install_sh_SCRIPT) foo.py $(DESTDIR)$(pyexecdir)


note that the pyexecdir is set by the call (in your configure.in) of the macro:
SWIG_PYTHON






Reply via email to