mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
java: Delete target file before running javah.
javah from old GNU classpath won't overwrite the target *.h file, instead leaving the old one which results in a predictable build failure. Delete the target so this won't happen.
This commit is contained in:
@@ -81,6 +81,7 @@ libguestfs_jni_la_CFLAGS = \
|
||||
BUILT_SOURCES = com_redhat_et_libguestfs_GuestFS.h
|
||||
|
||||
com_redhat_et_libguestfs_GuestFS.h: $(java_prefix)/GuestFS.class
|
||||
rm -f $@
|
||||
$(JAVAH) -classpath @srcdir@:$(builddir) com.redhat.et.libguestfs.GuestFS
|
||||
|
||||
# Documentation.
|
||||
|
||||
Reference in New Issue
Block a user