summaryrefslogtreecommitdiff
path: root/Examples/python/constants/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/constants/Makefile')
-rw-r--r--Examples/python/constants/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Examples/python/constants/Makefile b/Examples/python/constants/Makefile
index 1420b4e0b..505f199de 100644
--- a/Examples/python/constants/Makefile
+++ b/Examples/python/constants/Makefile
@@ -4,17 +4,16 @@ SRCS =
TARGET = example
INTERFACE = example.i
-all::
+check: build
+ $(MAKE) -f $(TOP)/Makefile python_run
+
+build:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python
-static::
+static:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='mypython' INTERFACE='$(INTERFACE)' python_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