From fc3e6782dd364695e48b070cad895f791c23c575 Mon Sep 17 00:00:00 2001 From: Igor Cota Date: Wed, 28 Feb 2018 10:30:40 +0100 Subject: [PATCH] Only make clean external submodules if Makefile present, fixes #1130 --- external/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/Makefile b/external/Makefile index da1a50183..704a36d16 100644 --- a/external/Makefile +++ b/external/Makefile @@ -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