summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
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