]> git.lttng.org Git - lttng-ust.git/commitdiff
fix: python agent: Add a dependency on generated files
authorMichael Jeanson <mjeanson@debian.org>
Wed, 14 Jun 2023 20:21:32 +0000 (16:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Jun 2023 12:21:25 +0000 (08:21 -0400)
This allows files to be regenerated at build time if the template was
modified since the last build.

Change-Id: I2f98d6b726552efd91719ada9637d2fc2909fbb3
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/python-lttngust/Makefile.am

index f95482d3e15822dcffe2698a21d3ce40391855d2..64800e6fafd53587eadc5e94f6dbd8dba7858674 100644 (file)
@@ -10,6 +10,10 @@ STATIC_BINDINGS_DEPS = \
        lttngust/debug.py \
        lttngust/loghandler.py
 
+GENERATED_BINDINGS_DEPS = \
+       lttngust/version.py \
+       setup.py
+
 all-local: build-python-bindings.stamp
 
 copy-static-deps.stamp: $(addprefix $(srcdir)/, $(STATIC_BINDINGS_DEPS))
@@ -23,7 +27,7 @@ copy-static-deps.stamp: $(addprefix $(srcdir)/, $(STATIC_BINDINGS_DEPS))
 # Use setup.py for the installation instead of Autoconf.
 # This ease the installation process and assure a *pythonic*
 # installation.
-build-python-bindings.stamp: copy-static-deps.stamp
+build-python-bindings.stamp: copy-static-deps.stamp $(GENERATED_BINDINGS_DEPS)
        $(PYTHON) $(builddir)/setup.py build --force
        touch $@
 
This page took 0.029469 seconds and 4 git commands to generate.