From e467e6a5c6d5544a84f52fc9f5ef1f3dffd6e7bc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 10 Sep 2019 12:58:08 +0930 Subject: [PATCH] Makefile: fix race if we run `make update-mocks` in a clean tree. /bin/sh: 1: ccan/ccan/cdump/tools/cdump-enumstr: Text file busy make[1]: *** [common/Makefile:81: common/gen_htlc_state_names.h] Error 2 make[1]: *** Waiting for unfinished jobs.... The fix is to make sure all generated headers are made first, and thus cdump-enumstr. Signed-off-by: Rusty Russell --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1a8431bd4..85e34f4f1 100644 --- a/Makefile +++ b/Makefile @@ -430,6 +430,7 @@ clean: find . -name '*gcno' -delete find . -name '*.nccout' -delete +update-mocks: $(ALL_GEN_HEADERS) update-mocks/%: % @MAKE=$(MAKE) tools/update-mocks.sh "$*"