build: fix make dist with java disabled

Fails for me with:

  No rule to make target 'com_redhat_et_libguestfs_GuestFS.h'

libguestfs_jni_la_SOURCES is inside the `HAVE_JAVA` conditional,
but apparently with automake that doesn't matter, and _SOURCES
will always be copied into Makefile.in, making `make dist` fail
even if we never built anything in the java/ directory.

That header is in BUILT_SOURCES already which apparently does
what we want (and is _not_ copied unconditionally to Makefile.in).
So just drop the offending line

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2026-02-18 11:56:44 -05:00
parent 9451c1a2ef
commit 08503c2482

View File

@@ -99,7 +99,6 @@ jnilib_LTLIBRARIES = libguestfs_jni.la
jnilibdir = $(JNI_INSTALL_DIR)
libguestfs_jni_la_SOURCES = \
com_redhat_et_libguestfs_GuestFS.h \
actions-0.c \
actions-1.c \
actions-2.c \