mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 13:04:27 +00:00
Fix libusb subdirectory builds.
This commit is contained in:
parent
99dc528c21
commit
4c9d9fd61a
@ -2,9 +2,6 @@
|
|||||||
bs_dir="$(dirname $(readlink -f $0))"
|
bs_dir="$(dirname $(readlink -f $0))"
|
||||||
rm -rf "${bs_dir}"/autom4te.cache
|
rm -rf "${bs_dir}"/autom4te.cache
|
||||||
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
|
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
|
||||||
libusb_dir="${bs_dir}"/libusb-1.0/
|
|
||||||
rm -rf "${libusb_dir}"/autom4te.cache
|
|
||||||
rm -rf "${libusb_dir}"/aclocal.m4 "${libusb_dir}"/ltmain.sh
|
|
||||||
|
|
||||||
echo 'Running autoreconf -if...'
|
echo 'Running autoreconf -if...'
|
||||||
aclocal --force -I m4
|
aclocal --force -I m4
|
||||||
@ -13,6 +10,12 @@ autoconf --force
|
|||||||
autoheader --force
|
autoheader --force
|
||||||
automake --add-missing --copy --force-missing
|
automake --add-missing --copy --force-missing
|
||||||
|
|
||||||
|
libusb_dir="${bs_dir}"/compat/libusb-1.0/
|
||||||
|
rm -rf "${libusb_dir}"/autom4te.cache
|
||||||
|
rm -rf "${libusb_dir}"/aclocal.m4 "${libusb_dir}"/ltmain.sh
|
||||||
|
|
||||||
|
autoreconf -fi "${libusb_dir}"
|
||||||
|
|
||||||
if test -z "$NOCONFIGURE" ; then
|
if test -z "$NOCONFIGURE" ; then
|
||||||
echo 'Configuring...'
|
echo 'Configuring...'
|
||||||
"$bs_dir"/configure "$@"
|
"$bs_dir"/configure "$@"
|
||||||
|
@ -2,8 +2,8 @@ AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
|
|||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
DISTCLEANFILES = libusb-1.0.pc
|
DISTCLEANFILES = libusb-1.0.pc
|
||||||
MAINTAINERCLEANFILES = ChangeLog
|
MAINTAINERCLEANFILES = ChangeLog
|
||||||
EXTRA_DIST = TODO PORTING msvc
|
EXTRA_DIST = TODO PORTING
|
||||||
SUBDIRS = libusb doc
|
SUBDIRS = libusb
|
||||||
|
|
||||||
if BUILD_EXAMPLES
|
if BUILD_EXAMPLES
|
||||||
SUBDIRS += examples
|
SUBDIRS += examples
|
||||||
|
@ -226,7 +226,4 @@ AC_SUBST(LTLDFLAGS)
|
|||||||
AC_CONFIG_FILES([libusb-1.0.pc])
|
AC_CONFIG_FILES([libusb-1.0.pc])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_CONFIG_FILES([libusb/Makefile])
|
AC_CONFIG_FILES([libusb/Makefile])
|
||||||
AC_CONFIG_FILES([examples/Makefile])
|
|
||||||
AC_CONFIG_FILES([doc/Makefile])
|
|
||||||
AC_CONFIG_FILES([doc/doxygen.cfg])
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user