summaryrefslogtreecommitdiff
path: root/Examples/python/import/Makefile
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-04-13 21:44:04 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-04-19 22:47:26 +0100
commitcc4ac0a9e93104ee435b50b9532dc1ca1a84bf03 (patch)
treeb41e3d090fdc77ec7271c4a251ea83daf5d58762 /Examples/python/import/Makefile
parent0fa791d1ea9e79d54e9e934e5527876221104b52 (diff)
downloadswig-cc4ac0a9e93104ee435b50b9532dc1ca1a84bf03.tar.gz
Python examples makefiles clean target fixed and use RUNPIPE and tidyup
Diffstat (limited to 'Examples/python/import/Makefile')
-rw-r--r--Examples/python/import/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Examples/python/import/Makefile b/Examples/python/import/Makefile
index 74d4f88cf..f63e12271 100644
--- a/Examples/python/import/Makefile
+++ b/Examples/python/import/Makefile
@@ -3,7 +3,10 @@ SWIG = $(TOP)/../preinst-swig
SWIGOPT =
LIBS =
-all::
+check: build
+ $(MAKE) -f $(TOP)/Makefile python_run
+
+build:
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
LIBS='$(LIBS)' TARGET='base' INTERFACE='base.i' python_cpp
$(MAKE) -f $(TOP)/Makefile SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' \
@@ -14,9 +17,6 @@ all::
LIBS='$(LIBS)' TARGET='spam' INTERFACE='spam.i' python_cpp
-clean::
- $(MAKE) -f $(TOP)/Makefile python_clean
- @rm -f foo.py bar.py spam.py base.py
-
-check: all
- $(MAKE) -f $(TOP)/Makefile python_run
+clean:
+ $(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' python_clean
+ rm -f foo.py bar.py spam.py base.py