diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-28 20:59:34 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-28 21:03:48 +0300 |
commit | 4889b6ff9b068484b70a7a1cc5036430fa0df753 (patch) | |
tree | a7471e42a2638e37aa112ac0a032b9ee063a3e12 | |
parent | e66b3042d6a6c6b0cfe1bd9cf9b520d71617bb68 (diff) | |
download | micropython-4889b6ff9b068484b70a7a1cc5036430fa0df753.tar.gz micropython-4889b6ff9b068484b70a7a1cc5036430fa0df753.zip |
unix/Makefile: "make axtls": Automatically fetch submodules if missing.
Try to emulate "you can build without reading instructions" behavior as far
as possible.
-rw-r--r-- | unix/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile index febf83cb38..a3c1197915 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -302,8 +302,12 @@ libffi: ../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out CC="$(CC)" CXX="$(CXX)" LD="$(LD)"; \ make install-exec-recursive; make -C include install-data-am -axtls: +axtls: ../lib/axtls/README cd ../lib/axtls; cp config/upyconfig config/.config cd ../lib/axtls; make oldconfig -B cd ../lib/axtls; make clean cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)" + +../lib/axtls/README: + @echo "You cloned without --recursive, fetching submodules for you." + (cd ..; git submodule update --init --recursive) |