From 88402bc234e198e3c0bcdbb18a3313edd6b1a7ae Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 13 May 2020 12:48:09 +0930 Subject: [PATCH] Makefile: fix clean and distclean for external libs. Signed-off-by: Rusty Russell --- external/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/external/Makefile b/external/Makefile index c5694bc02..1ce706f96 100644 --- a/external/Makefile +++ b/external/Makefile @@ -100,13 +100,13 @@ clean: external-clean external-clean: $(RM) $(EXTERNAL_LIBS) $(TARGET_DIR)/*.la $(TARGET_DIR)/*.o + $(RM) $(TARGET_DIR)/jsmn-build/jsmn.o if [ -f ${TARGET_DIR}/libsodium-build/Makefile ]; then make -C ${TARGET_DIR}/libsodium-build clean; fi if [ -f ${TARGET_DIR}/libwally-core-build/Makefile ]; then make -C ${TARGET_DIR}/libwally-core-build clean; fi if [ -f ${TARGET_DIR}/libwally-core-build/src/Makefile ]; then make -C ${TARGET_DIR}/libwally-core-build/src clean; fi + if [ -f ${TARGET_DIR}/libacktrace-build/Makefile ]; then make -C ${TARGET_DIR}/libbacktrace-build/src clean; fi external-distclean: make -C external/libsodium distclean || true - $(RM) -rf ${TARGET_DIR}/libbacktrace-build - $(RM) ${TARGET_DIR}/libsodium-build/src/libsodium/libsodium.la - $(RM) ${TARGET_DIR}/libwally-core-build/src/secp256k1/libsecp256k1.la ${TARGET_DIR}/libwally-core-build/src/libwallycore.la + $(RM) -rf ${TARGET_DIR}/libbacktrace-build ${TARGET_DIR}/libsodium-build ${TARGET_DIR}/libwally-core-build ${TARGET_DIR}/jsmn-build $(RM) -r `git status --ignored --porcelain external/libwally-core | grep '^!! ' | cut -c3-`