summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-10-05 11:50:37 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-10-05 11:50:37 +0000
commit365f560716fbfc22932909ee24f60ade81be8e45 (patch)
tree01f9ab709536ac50bf4f1f8d567730b743b8bd87 /php
parent8925affa1f3896e534b4bf11237eedb21bc1ba89 (diff)
downloadlasso-365f560716fbfc22932909ee24f60ade81be8e45.tar.gz
lasso-365f560716fbfc22932909ee24f60ade81be8e45.tar.xz
lasso-365f560716fbfc22932909ee24f60ade81be8e45.zip
don't patch a lasso_wrap.c that was not just generated by swig.
Diffstat (limited to 'php')
-rw-r--r--php/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/Makefile.am b/php/Makefile.am
index f747d6d5..e6d6eab1 100644
--- a/php/Makefile.am
+++ b/php/Makefile.am
@@ -12,7 +12,8 @@ SWIG_I_FILES=$(shell find $(top_srcdir)/swig/ -name '*.[ih]')
lasso_wrap.c php_lasso.h lasso.php: $(SWIG_I_FILES)
$(SWIG) -v -php4 -module lasso -o lasso_wrap.c -dlname lasso $(top_srcdir)/swig/Lasso.i
cp lasso_wrap.c lasso_wrap.c.bak
- $(PYTHON) $(srcdir)/patch_swig_output.py < lasso_wrap.c.bak > lasso_wrap.c
+ test x"$(SWIG)" = xecho || \
+ $(PYTHON) $(srcdir)/patch_swig_output.py < lasso_wrap.c.bak > lasso_wrap.c
test-php: lasso.la lasso.php
$(PHP) -d extension_dir=.libs $(srcdir)/lasso.php