automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: executing shell commands (like cp)


From: Xavier Décoret
Subject: Re: executing shell commands (like cp)
Date: Tue, 07 Sep 2004 23:57:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

Alexandre Duret-Lutz wrote:

"sashan" == sashan  <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]