fix python build 3/3

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16583 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2010-02-06 07:58:02 +00:00
parent 6e5f1ea9f9
commit 83487f0585
2 changed files with 16 additions and 12 deletions
+4 -4
View File
@@ -21,10 +21,10 @@ reswig: swigclean mod_python_wrap.cpp
swigclean: clean
rm -f mod_python_wrap.* freeswitch.py
mod_python_wrap.cpp: mod_python_extra.c
swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i
echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp
patch -s -p0 -i hack.diff
mod_python_wrap.cpp: mod_python_extra.c hack.diff
which swig 2>&1 >>/dev/null && swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i
which swig 2>&1 >>/dev/null && echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp
which swig 2>&1 >>/dev/null && patch -s -p0 -i hack.diff
local_install:
mkdir -m755 -p $(DESTDIR)$(PYTHON_SITE_DIR)