From b280cab6b02baf7e92c27a6183a0c247448a4565 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 8 Mar 2016 10:32:15 +1030 Subject: [PATCH] Makefile: clean daemon files with make clean. Signed-off-by: Rusty Russell --- Makefile | 2 +- daemon/Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e43dd558f..fa8dc5233 100644 --- a/Makefile +++ b/Makefile @@ -338,7 +338,7 @@ maintainter-clean: distclean $(RM) lightning.pb-c.c lightning.pb-c.h ccan/config.h gen_version.h $(RM) doc/deployable-lightning.pdf -clean: +clean: daemon-clean $(MAKE) -C secp256k1/ clean || true $(RM) libsecp256k1.{a,la} $(RM) $(PROGRAMS) test-cli/leak-anchor-sigs diff --git a/daemon/Makefile b/daemon/Makefile index a3fa0ffad..267ba6bee 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -75,3 +75,6 @@ daemon/jsmn.o: daemon/jsmn/jsmn.c daemon/lightningd: $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_JSMN_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS) libsecp256k1.a daemon/lightning-cli: $(DAEMON_CLI_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_JSMN_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS) libsecp256k1.a + +daemon-clean: + $(RM) $(DAEMON_OBJS) $(DAEMON_LIB_OBJS) $(DAEMON_CLI_OBJS) $(DAEMON_JSMN_OBJS)