Skip to content

Commit 4889b6f

Browse files
committed
unix/Makefile: "make axtls": Automatically fetch submodules if missing.
Try to emulate "you can build without reading instructions" behavior as far as possible.
1 parent e66b304 commit 4889b6f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

unix/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,12 @@ libffi:
302302
../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out CC="$(CC)" CXX="$(CXX)" LD="$(LD)"; \
303303
make install-exec-recursive; make -C include install-data-am
304304

305-
axtls:
305+
axtls: ../lib/axtls/README
306306
cd ../lib/axtls; cp config/upyconfig config/.config
307307
cd ../lib/axtls; make oldconfig -B
308308
cd ../lib/axtls; make clean
309309
cd ../lib/axtls; make all CC="$(CC)" LD="$(LD)"
310+
311+
../lib/axtls/README:
312+
@echo "You cloned without --recursive, fetching submodules for you."
313+
(cd ..; git submodule update --init --recursive)

0 commit comments

Comments
 (0)