summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b30def4..f455fe3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,12 +18,20 @@
###########################################################################
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = libdimension \
+SUBDIRS = . \
+ libdimension \
libdimension-python \
dimension
EXTRA_DIST = autogen.sh
+# Set up ./dimension as a python package for tests
+$(abs_builddir)/dimension/__init__.py:
+ ln -sf "$(abs_top_srcdir)/dimension/__init__.py" dimension/__init__.py
+$(abs_builddir)/dimension/wrapper.so:
+ ln -sf ../libdimension-python/.libs/wrapper.so dimension/wrapper.so
+all-local: $(abs_builddir)/dimension/__init__.py $(abs_builddir)/dimension/wrapper.so
+
bench:
cd libdimension && $(MAKE) $(AM_MAKEFLAGS) bench