[PATCH 11/11] android: Run autogen.sh if configure script is missing

Kevin Cernekee cernekee at gmail.com
Sun Mar 24 21:14:06 EDT 2013


Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
 android/Makefile |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/android/Makefile b/android/Makefile
index ccc670d..14c4d1c 100644
--- a/android/Makefile
+++ b/android/Makefile
@@ -244,9 +244,13 @@ gnutls: $(GNUTLS_DEPS)
 #
 # Build OpenConnect for Android
 #
+OPENCONNECT_SRC := ..
 OPENCONNECT_BUILD := $(TRIPLET)/openconnect
 
-$(OPENCONNECT_BUILD)/Makefile: $(GNUTLS_DEPS) $(LIBXML_DEPS) ../configure
+$(OPENCONNECT_SRC)/configure:
+	cd $(OPENCONNECT_SRC) && ./autogen.sh
+
+$(OPENCONNECT_BUILD)/Makefile: $(GNUTLS_DEPS) $(LIBXML_DEPS) $(OPENCONNECT_SRC)/configure
 	mkdir -p $(OPENCONNECT_BUILD)
 	cd $(OPENCONNECT_BUILD) && ../../../configure $(CONFIGURE_ARGS) \
 	CFLAGS="--sysroot=$(NDK_SYSROOT) -DNO_BROKEN_DTLS_CHECK" \
-- 
1.7.10.4




More information about the openconnect-devel mailing list