From 2d061cf42b91907c457f1dff542cf0bbc6856dcb Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 14 Jun 2023 16:21:32 -0400 Subject: [PATCH] fix: python agent: Add a dependency on generated files 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 Signed-off-by: Mathieu Desnoyers --- src/python-lttngust/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/python-lttngust/Makefile.am b/src/python-lttngust/Makefile.am index f95482d3..64800e6f 100644 --- a/src/python-lttngust/Makefile.am +++ b/src/python-lttngust/Makefile.am @@ -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 $@ -- 2.34.1