Project "FreeSWITCH Source" received a push.

branch: master updated

       via: b83a30caf68e290239f2d62c01bdc5ba7f8a5e15 (commit)
      from: 0d8e945bd1588650051dca407e6e3e3ff90698e9 (commit)


= COMMIT LOG ===========================================================
committer: Michal Bielicki - cypromis
comments: 
added python eslmod installation to esl Makefiles

diff --git a/libs/esl/Makefile b/libs/esl/Makefile
index ab50bac..fbc870a 100644
--- a/libs/esl/Makefile
+++ b/libs/esl/Makefile
@@ -95,4 +95,7 @@ managedmod: $(MYLIB)
 phpmod-install: phpmod
 	$(MAKE) -C php install
 
+pymod-install: pymod
+	$(MAKE) -C python install
+
 everymod: perlmod phpmod luamod pymod rubymod javamod managedmod
diff --git a/libs/esl/python/Makefile b/libs/esl/python/Makefile
index 758aeaf..6b7147b 100644
--- a/libs/esl/python/Makefile
+++ b/libs/esl/python/Makefile
@@ -1,5 +1,6 @@
 LOCAL_CFLAGS=`python ./python-config --includes`
 LOCAL_LDFLAGS=`python ./python-config --ldflags`
+SITE_DIR=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
 
 all: _ESL.so
 
@@ -12,6 +13,9 @@ esl_wrap.o: esl_wrap.cpp
 _ESL.so: esl_wrap.o
 	$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o _ESL.so -L. $(LIBS)
 
+install: _ESL.so
+	install -o root -g root -m 644 _ESL.so $(SITE_DIR)
+
 clean:
 	rm -f *.o *.so *~
 
========================================================================

Summary of changes:
 libs/esl/Makefile        |    3 +++
 libs/esl/python/Makefile |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source