Fix: make dist fails on sdt-probe test with autotools v1.16+
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / Makefile.am
index 591f4aa6c1928054f088d9d7ab1c5e6805cd67dd..73bf3a23503783ad4086a3b0097db60f6ac027a7 100644 (file)
@@ -1,5 +1,14 @@
 EXTRA_DIST = foobar_provider.d
+
+# Although this is redundant with the check performed in the parent
+# Makefile.am, this is needed for autotools v1.16+ as BUILT_SOURCES is
+# evaluated for the 'dist' target.
+#
+# It is fine to generate this header in the 'dist' target (when
+# enabled) as it won't be distributed anyhow (it is marked as nodist).
+if TEST_SDT_UPROBE
 BUILT_SOURCES = foobar_provider.h
+endif
 
 noinst_PROGRAMS = userspace-probe-sdt-binary
 userspace_probe_sdt_binary_SOURCES = userspace-probe-sdt-binary.c sema.h sema.c
This page took 0.024368 seconds and 5 git commands to generate.