Only make clean external submodules if Makefile present, fixes #1130

This commit is contained in:
Igor Cota 2018-02-28 10:30:40 +01:00 committed by Rusty Russell
parent a20cf5463d
commit fc3e6782dd

6
external/Makefile vendored
View File

@ -82,9 +82,9 @@ clean: external-clean
external-clean:
$(RM) $(EXTERNAL_LIBS) external/*.la external/*.o
make -C external/libsodium clean
make -C external/libwally-core clean
make -C external/libwally-core/src clean
if [ -f external/libsodium/Makefile ]; then make -C external/libsodium clean; fi
if [ -f external/libwally-core/Makefile ]; then make -C external/libwally-core clean; fi
if [ -f external/ibwally-core/src/Makefile ]; then make -C external/libwally-core/src clean; fi
external-distclean:
make -C external/libsodium distclean || true