Browse Source

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>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
af7e6158af
  1. 2
      Makefile
  2. 4
      bitcoin/Makefile
  3. 2
      channeld/Makefile
  4. 2
      closingd/Makefile
  5. 5
      common/Makefile
  6. 6
      external/Makefile
  7. 2
      gossipd/Makefile
  8. 2
      hsmd/Makefile
  9. 2
      lightningd/Makefile
  10. 2
      onchaind/Makefile
  11. 2
      openingd/Makefile

2
Makefile

@ -285,7 +285,7 @@ clean: wire-clean
$(RM) $(CCAN_OBJS) $(CDUMP_OBJS) $(ALL_OBJS) $(RM) $(CCAN_OBJS) $(CDUMP_OBJS) $(ALL_OBJS)
$(RM) $(ALL_PROGRAMS) $(ALL_PROGRAMS:=.o) $(RM) $(ALL_PROGRAMS) $(ALL_PROGRAMS:=.o)
$(RM) $(ALL_TEST_PROGRAMS) $(ALL_TEST_PROGRAMS:=.o) $(RM) $(ALL_TEST_PROGRAMS) $(ALL_TEST_PROGRAMS:=.o)
$(RM) ccan/config.h gen_*.h $(RM) ccan/config.h gen_*.h ccan/tools/configurator/configurator
$(RM) ccan/ccan/cdump/tools/cdump-enumstr.o $(RM) ccan/ccan/cdump/tools/cdump-enumstr.o
$(RM) check-bolt tools/check-bolt tools/*.o $(RM) check-bolt tools/check-bolt tools/*.o
find . -name '*gcda' -delete find . -name '*gcda' -delete

4
bitcoin/Makefile

@ -62,3 +62,7 @@ check-whitespace: $(BITCOIN_SRC:%=check-whitespace/%) $(BITCOIN_HEADERS:%=check-
bitcoin-tests: $(BITCOIN_TEST_PROGRAMS:%=unittest/%) bitcoin-tests: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
clean: bitcoin-clean
bitcoin-clean:
$(RM) $(BITCOIN_OBJS) $(BITCOIN_TEST_PROGRAMS) $(BITCOIN_TEST_OBJS)

2
channeld/Makefile

@ -93,6 +93,6 @@ check-whitespace: $(LIGHTNINGD_CHANNEL_SRC_NOGEN:%=check-whitespace/%) $(LIGHTNI
clean: lightningd/channel-clean clean: lightningd/channel-clean
lightningd/channel-clean: lightningd/channel-clean:
$(RM) $(LIGHTNINGD_CHANNEL_OBJS) gen_* $(RM) $(LIGHTNINGD_CHANNEL_OBJS) channeld/gen_*
-include channeld/test/Makefile -include channeld/test/Makefile

2
closingd/Makefile

@ -77,6 +77,6 @@ check-whitespace: $(LIGHTNINGD_CLOSING_SRC_NOGEN:%=check-whitespace/%) $(LIGHTNI
clean: closingd-clean clean: closingd-clean
closingd-clean: closingd-clean:
$(RM) $(LIGHTNINGD_CLOSING_OBJS) gen_* $(RM) $(LIGHTNINGD_CLOSING_OBJS) closingd/gen_*
-include closingd/test/Makefile -include closingd/test/Makefile

5
common/Makefile

@ -65,4 +65,9 @@ check-whitespace: $(COMMON_SRC:%=check-whitespace/%) $(COMMON_HEADERS:%=check-wh
check-source: $(COMMON_SRC:%=check-src-include-order/%) \ check-source: $(COMMON_SRC:%=check-src-include-order/%) \
$(COMMON_HEADERS_NOGEN:%=check-hdr-include-order/%) $(COMMON_HEADERS_NOGEN:%=check-hdr-include-order/%)
clean: common-clean
common-clean:
$(RM) common/gen*
include common/test/Makefile include common/test/Makefile

6
external/Makefile

@ -84,11 +84,11 @@ distclean: external-distclean
clean: external-clean clean: external-clean
external-clean: external-clean:
$(RM) $(EXTERNAL_LIBS) $(RM) $(EXTERNAL_LIBS) external/*.la external/*.o
external-distclean: external-distclean:
make -C external/libsodium distclean || true make -C external/libsodium distclean || true
$(RM) -rf external/libbacktrace-build $(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 $(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-`

2
gossipd/Makefile

@ -76,6 +76,6 @@ check-whitespace: $(LIGHTNINGD_GOSSIP_ALLSRC_NOGEN:%=check-whitespace/%) $(LIGHT
clean: gossipd-clean clean: gossipd-clean
gossipd-clean: gossipd-clean:
$(RM) $(LIGHTNINGD_GOSSIP_OBJS) gen_* $(RM) $(LIGHTNINGD_GOSSIP_OBJS) gossipd/gen_*
-include gossipd/test/Makefile -include gossipd/test/Makefile

2
hsmd/Makefile

@ -81,6 +81,6 @@ check-whitespace: $(LIGHTNINGD_HSM_ALLSRC_NOGEN:%=check-whitespace/%) $(LIGHTNIN
clean: lightningd/hsm-clean clean: lightningd/hsm-clean
lightningd/hsm-clean: lightningd/hsm-clean:
$(RM) $(LIGHTNINGD_HSM_OBJS) gen_* $(RM) $(LIGHTNINGD_HSM_OBJS) hsmd/gen_*
-include hsmd/test/Makefile -include hsmd/test/Makefile

2
lightningd/Makefile

@ -105,6 +105,6 @@ lightningd/lightningd: $(LIGHTNINGD_OBJS) $(LIGHTNINGD_COMMON_OBJS) $(BITCOIN_OB
clean: lightningd-clean clean: lightningd-clean
lightningd-clean: lightningd-clean:
$(RM) $(LIGHTNINGD_OBJS) $(LIGHTNINGD_JSMN_OBJS) $(LIGHTNINGD_PROGRAM) $(RM) $(LIGHTNINGD_OBJS) $(LIGHTNINGD_JSMN_OBJS) $(LIGHTNINGD_PROGRAM) lightningd/gen*
include lightningd/test/Makefile include lightningd/test/Makefile

2
onchaind/Makefile

@ -86,6 +86,6 @@ check-whitespace: $(LIGHTNINGD_ONCHAIN_SRC_NOGEN:%=check-whitespace/%) $(LIGHTNI
clean: onchaind-clean clean: onchaind-clean
onchaind-clean: onchaind-clean:
$(RM) $(LIGHTNINGD_ONCHAIN_OBJS) gen_* $(RM) $(LIGHTNINGD_ONCHAIN_OBJS) onchaind/gen_*
-include onchaind/test/Makefile -include onchaind/test/Makefile

2
openingd/Makefile

@ -86,6 +86,6 @@ check-whitespace: $(LIGHTNINGD_OPENING_SRC_NOGEN:%=check-whitespace/%) $(LIGHTNI
clean: opening-clean clean: opening-clean
opening-clean: opening-clean:
$(RM) $(LIGHTNINGD_OPENING_OBJS) gen_* $(RM) $(LIGHTNINGD_OPENING_OBJS) openingd/gen_*
-include openingd/test/Makefile -include openingd/test/Makefile

Loading…
Cancel
Save