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:
Richard Jones
2012-03-28 19:19:58 +01:00
parent 5ea27d740e
commit 4d0aa08b00

View File

@@ -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.