make: remove generated files when running clean

This commit is contained in:
Andrew Toth 2021-12-02 11:31:12 -05:00 committed by Rusty Russell
parent d22fd59997
commit 78fb78478b
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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