summaryrefslogtreecommitdiff
path: root/Examples/python
diff options
context:
space:
mode:
authorMike Romberg <mike-romberg@comcast.net>2016-06-03 03:17:19 -0600
committerMike Romberg <mike-romberg@comcast.net>2016-06-03 03:17:19 -0600
commitf3c373a584fecafebc0c72bb53c96fe0acaf3edb (patch)
tree572f3c386c5a4da634e75a5c9f59763930e40dae /Examples/python
parent621325a7dd897b36c6b3745bb39cd0c4dfd59a8f (diff)
downloadswig-f3c373a584fecafebc0c72bb53c96fe0acaf3edb.tar.gz
avoid the shell checks involving __init__.py
Diffstat (limited to 'Examples/python')
-rw-r--r--Examples/python/import_packages/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Examples/python/import_packages/Makefile b/Examples/python/import_packages/Makefile
index 129495cbd..b87ed7fc7 100644
--- a/Examples/python/import_packages/Makefile
+++ b/Examples/python/import_packages/Makefile
@@ -10,10 +10,12 @@ import_packages_subdirs = \
from_init3 \
relativeimport1 \
relativeimport2 \
- relativeimport3 \
- split_modules
+ relativeimport3
+
check: build
+ cd split_modules && $(MAKE) check
+ cd namespace_pkg && $(MAKE) check
if test "x$(SRCDIR)" != x; then \
for file in `cd $(SRCDIR) && find . -type f -name __init__.py`; do \
cp "${SRCDIR}$$file" "$$file" || exit 1; \
@@ -24,6 +26,8 @@ check: build
done
build:
+ cd split_modules && $(MAKE) SWIGOPT='$(SWIGOPT)' LIBS='$(LIBS)' build
+ cd namespace_pkg && $(MAKE) SWIGOPT='$(SWIGOPT)' LIBS='$(LIBS)' build
for s in $(import_packages_subdirs); do \
(cd $$s && $(MAKE) SWIGOPT='$(SWIGOPT)' LIBS='$(LIBS)' build); \
done
@@ -34,6 +38,8 @@ static:
done
clean:
+ cd split_modules && $(MAKE) clean
+ cd namespace_pkg && $(MAKE) clean
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' python_clean
if test "x$(SRCDIR)" != x; then \
for file in `cd $(SRCDIR) && find . -type f -name __init__.py`; do \