summaryrefslogtreecommitdiff
path: root/Examples/python/std_vector/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/std_vector/Makefile')
-rw-r--r--Examples/python/std_vector/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Examples/python/std_vector/Makefile b/Examples/python/std_vector/Makefile
index ba5c79827..06bce6543 100644
--- a/Examples/python/std_vector/Makefile
+++ b/Examples/python/std_vector/Makefile
@@ -6,17 +6,16 @@ INTERFACE = example.i
LIBS = -lm
SWIGOPT =
-all::
+check: build
+ $(MAKE) -f $(TOP)/Makefile python_run
+
+build:
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
-static::
+static:
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='mypython' INTERFACE='$(INTERFACE)' python_cpp_static
-clean::
- $(MAKE) -f $(TOP)/Makefile python_clean
- rm -f $(TARGET).py
-
-check: all
- $(MAKE) -f $(TOP)/Makefile python_run
+clean:
+ $(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' python_clean