java: fix AllJunitTests generation when building out of source directory

This commit is contained in:
Benjamin Dauvergne 2015-09-02 11:54:50 +02:00
parent 8d4c940ac1
commit 0099e845ec
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ AllJunitTests: JAVAFLAGS +="-Dsrcdir=$(srcdir)"
AllJunitTests: $(test_source_files:.java=.class)
echo "#! /bin/sh" > $@
echo "OBJDIR=`$(top_srcdir)/libtool --config | grep ^objdir | sed 's/.*=//'`" >> $@
echo "OBJDIR=`$(top_builddir)/libtool --config | grep ^objdir | sed 's/.*=//'`" >> $@
echo 'LD_LIBRARY_PATH=$$OBJDIR DYLD_LIBRARY_PATH=$$OBJDIR @JUNIT@ -Djava.library.path=$$OBJDIR BindingTests' >> $@
echo 'LD_LIBRARY_PATH=$$OBJDIR DYLD_LIBRARY_PATH=$$OBJDIR @JUNIT@ -Djava.library.path=$$OBJDIR LoginTest' >> $@
chmod +x $@