external/Makefile: Initialize/update libwally-core submodule.

This commit is contained in:
Carl Dong 2018-01-28 02:01:24 +00:00 committed by Rusty Russell
parent a6e2e46b54
commit e624046c74
1 changed files with 4 additions and 0 deletions

4
external/Makefile vendored
View File

@ -31,6 +31,10 @@ external/libsodium/src/libsodium/include/sodium.h:
external/libsodium/src/libsodium/libsodium.la: external/libsodium/src/libsodium/include/sodium.h
cd external/libsodium && ./autogen.sh && ./configure CC="$(CC)" --enable-static=yes --enable-shared=no --enable-tests=no --libdir=`pwd`/.. && $(MAKE)
$(LIBWALLY_HEADERS) $(LIBSECP_HEADERS):
git submodule update external/libwally-core
[ -f $@ ] || git submodule update --init external/libwally-core
# libsecp included in libwally.
# Wildcards here are magic. See http://stackoverflow.com/questions/2973445/gnu-makefile-rule-generating-a-few-targets-from-a-single-source-file
external/libsecp256k1.% external/libwallycore.%: external/libwally-core/src/secp256k1/libsecp256k1.la external/libwally-core/src/libwallycore.la