Python bt2 fix: erroneous imports following split of clock class and value
[babeltrace.git] / bindings / python / bt2 / Makefile.am
index f41e2c07ce6e92ede4f1c42f0da39a9a3596c397..f8ae782a9b7cb9100d4ce14b461e6bfaaa3840eb 100644 (file)
@@ -26,6 +26,7 @@ STATIC_BINDINGS_DEPS =                        \
        bt2/native_btpacket.i           \
        bt2/native_btplugin.i           \
        bt2/native_btport.i             \
+       bt2/native_btqueryexec.i        \
        bt2/native_btref.i              \
        bt2/native_btstreamclass.i      \
        bt2/native_btstream.i           \
@@ -34,6 +35,7 @@ STATIC_BINDINGS_DEPS =                        \
        bt2/native_btversion.i          \
        bt2/clock_class_priority_map.py \
        bt2/clock_class.py              \
+       bt2/clock_value.py              \
        bt2/component.py                \
        bt2/connection.py               \
        bt2/ctf_writer.py               \
@@ -50,6 +52,7 @@ STATIC_BINDINGS_DEPS =                        \
        bt2/plugin.py                   \
        bt2/port.py                     \
        bt2/py_plugin.py                \
+       bt2/query_executor.py           \
        bt2/stream_class.py             \
        bt2/stream.py                   \
        bt2/trace.py                    \
@@ -67,7 +70,15 @@ BUILD_FLAGS=CC="$(CC)" \
 
 all-local: build-python-bindings.stamp
 
-build-python-bindings.stamp: $(STATIC_BINDINGS_DEPS) $(GENERATED_BINDINGS_DEPS)
+copy-static-deps.stamp: $(STATIC_BINDINGS_DEPS)
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for file in $(STATIC_BINDINGS_DEPS); do \
+                       cp -f $(srcdir)/$$file $(builddir)/$$file; \
+               done; \
+       fi
+       touch $@
+
+build-python-bindings.stamp: copy-static-deps.stamp $(GENERATED_BINDINGS_DEPS)
        $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build_ext
        $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build
        touch $@
@@ -81,6 +92,11 @@ install-exec-local: build-python-bindings.stamp
 
 clean-local:
        rm -rf $(builddir)/build
+       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
+               for file in $(STATIC_BINDINGS_DEPS); do \
+                       rm -f $(builddir)/$$file; \
+               done; \
+       fi
 
 # Distutils' setup.py does not include an uninstall target, we thus need to do
 # it manually. We save the path of the files that were installed during the install target
@@ -97,4 +113,4 @@ uninstall-local:
 EXTRA_DIST = $(STATIC_BINDINGS_DEPS)
 
 # clean: generated C and Python files (by SWIG)
-CLEANFILES = bt2/native_bt.py bt2/native_bt_wrap.c build-python-bindings.stamp
+CLEANFILES = bt2/native_bt.py bt2/native_bt_wrap.c build-python-bindings.stamp copy-static-deps.stamp
This page took 0.058307 seconds and 4 git commands to generate.