diff --git a/Makefile b/Makefile index c95e8156c..f2b83f2d9 100644 --- a/Makefile +++ b/Makefile @@ -610,7 +610,6 @@ distclean: clean maintainer-clean: distclean @echo 'This command is intended for maintainers to use; it' @echo 'deletes files that may need special tools to rebuild.' - $(RM) $(ALL_GEN_HEADERS) $(ALL_GEN_SOURCES) # We used to have gen_ files, now we have _gen files. obsclean: @@ -618,6 +617,7 @@ obsclean: clean: obsclean $(RM) $(CCAN_OBJS) $(CDUMP_OBJS) $(ALL_OBJS) + $(RM) $(ALL_GEN_HEADERS) $(ALL_GEN_SOURCES) $(RM) $(ALL_PROGRAMS) $(RM) $(ALL_TEST_PROGRAMS) $(RM) $(ALL_FUZZ_TARGETS) diff --git a/wallet/Makefile b/wallet/Makefile index 469768060..007872f4c 100644 --- a/wallet/Makefile +++ b/wallet/Makefile @@ -46,7 +46,8 @@ wallet/db_%_sqlgen.c: wallet/statements_gettextgen.po devtools/sql-rewrite.py $( $(call VERBOSE,"sql-rewrite $@",devtools/sql-rewrite.py wallet/statements_gettextgen.po $* > $@ && $(call SHA256STAMP,//,)); \ fi -maintainer-clean: wallet-maintainer-clean +maintainer-clean: clean +clean: wallet-maintainer-clean wallet-maintainer-clean: $(RM) wallet/statements.po $(RM) wallet/statements_gettextgen.po