]> git.sesse.net Git - mlt/blobdiff - src/swig/php/build
Further integrate swig into build system.
[mlt] / src / swig / php / build
index 4074b8778b960a6c559c1ca15ff6b6869d3760f9..b966b328cd228316cbc2ebd4282fbc2df22dea9c 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+if [ "$1" = "clean" ]
+then
+       ( cd `dirname $0`; rm -f *.cpp *.so mlt.i ../.php mlt.php *.h )
+       exit 0
+fi
+
+
 ln -sf ../mlt.i
 swig -c++ -I../../mlt++ -I../.. -php5 -noproxy mlt.i
 g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. `php-config --includes` mlt_wrap.cpp