mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
0861279b65
commit
e467e6a5c6
1
Makefile
1
Makefile
@@ -430,6 +430,7 @@ clean:
|
|||||||
find . -name '*gcno' -delete
|
find . -name '*gcno' -delete
|
||||||
find . -name '*.nccout' -delete
|
find . -name '*.nccout' -delete
|
||||||
|
|
||||||
|
update-mocks: $(ALL_GEN_HEADERS)
|
||||||
update-mocks/%: %
|
update-mocks/%: %
|
||||||
@MAKE=$(MAKE) tools/update-mocks.sh "$*"
|
@MAKE=$(MAKE) tools/update-mocks.sh "$*"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user