diff --git a/wallet/Makefile b/wallet/Makefile index a12988e31..4c82a78db 100644 --- a/wallet/Makefile +++ b/wallet/Makefile @@ -14,7 +14,13 @@ WALLET_LIB_SRC := \ WALLET_LIB_OBJS := $(WALLET_LIB_SRC:.c=.o) WALLET_LIB_HEADERS := $(WALLET_LIB_SRC:.c=.h) +# Make sure these depend on everything. +ALL_OBJS += $(LIGHTNINGD_OBJS) + check-whitespace: $(WALLET_LIB_SRC:%=check-whitespace/%) $(WALLET_LIB_HEADERS:%=check-whitespace/%) +check-source: $(WALLET_LIB_SRC:%=check-src-include-order/%) +check-source: $(WALLET_LIB_HEADERS:%=check-hdr-include-order/%) +check-source-bolt: $(WALLET_LIB_SRC:%=bolt-check/%) $(WALLET_LIB_HEADERS:%=bolt-check/%) clean: wallet-clean diff --git a/wallet/db.h b/wallet/db.h index 7514cd7b7..62b466a6b 100644 --- a/wallet/db.h +++ b/wallet/db.h @@ -1,14 +1,13 @@ #ifndef WALLET_DB_H #define WALLET_DB_H - #include "config.h" -#include + #include +#include #include #include #include #include - #include #include #include diff --git a/wallet/invoices.c b/wallet/invoices.c index 8cc43e477..4d46665ce 100644 --- a/wallet/invoices.c +++ b/wallet/invoices.c @@ -7,13 +7,13 @@ #include #include #include +#include +#include #include #include #include #include #include -#include -#include struct invoice_waiter { /* Is this waiter already triggered? */ diff --git a/wallet/invoices.h b/wallet/invoices.h index 05ccba482..8fbf196d8 100644 --- a/wallet/invoices.h +++ b/wallet/invoices.h @@ -1,10 +1,10 @@ #ifndef LIGHTNING_WALLET_INVOICES_H #define LIGHTNING_WALLET_INVOICES_H #include "config.h" -#include -#include -#include #include +#include +#include +#include struct db; struct invoice; diff --git a/wallet/wallet.c b/wallet/wallet.c index b52794ae8..3fe9ccbd5 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -4,10 +4,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include