PHP examples makefiles clean target fixed and use RUNPIPE and tidyup

This commit is contained in:
William S Fulton 2013-04-13 01:12:36 +01:00
commit 0fa791d1ea
18 changed files with 108 additions and 126 deletions

View file

@ -6,17 +6,16 @@ INTERFACE = example.i
LIBS = -lm
SWIGOPT =
all::
check: build
$(MAKE) -f $(TOP)/Makefile php_run
build:
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php_cpp
static::
static:
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' php_cpp_static
clean::
clean:
$(MAKE) -f $(TOP)/Makefile php_clean
rm -f $(TARGET).php
check: all
$(MAKE) -f $(TOP)/Makefile php_run