Makefile: clean needs to do more, distclean should remove everything.

I checked this with git status --ignored after a full build and 'make distclean'.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-11-23 13:33:07 +10:30
committed by Christian Decker
parent 9bcb01e710
commit af7e6158af
11 changed files with 20 additions and 11 deletions

6
external/Makefile vendored
View File

@@ -84,11 +84,11 @@ distclean: external-distclean
clean: external-clean
external-clean:
$(RM) $(EXTERNAL_LIBS)
$(RM) $(EXTERNAL_LIBS) external/*.la external/*.o
external-distclean:
make -C external/libsodium distclean || true
$(RM) -rf external/libbacktrace-build
$(RM) external/libsodium.la external/libsodium/src/libsodium/libsodium.la
$(RM) external/libsodium/src/libsodium/libsodium.la
$(RM) external/libwally-core/src/secp256k1/libsecp256k1.la external/libwally-core/src/libwallycore.la
cd external/libwally-core && tools/cleanup.sh
$(RM) -r `git status --ignored --porcelain external/libwally-core | grep '^!! ' | cut -c3-`