mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-20 22:34:21 +01:00
build: fix parallel initial build.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -109,10 +109,15 @@ check-daemon-makefile:
|
||||
@if [ "`ls daemon/*.h | grep -v daemon/gen | tr '\012' ' '`" != "`echo $(DAEMON_HEADERS) ''`" ]; then echo DAEMON_HEADERS incorrect; exit 1; fi
|
||||
|
||||
# Git submodules are seriously broken.
|
||||
daemon/jsmn/jsmn.c daemon/jsmn/jsmn.h:
|
||||
daemon/jsmn/jsmn.h:
|
||||
git submodule update daemon/jsmn/
|
||||
[ -f $@ ] || git submodule update --init daemon/jsmn/
|
||||
|
||||
# If we tell Make that the above builds both, it runs it twice in
|
||||
# parallel. So we lie :(
|
||||
daemon/jsmn/jsmn.c: daemon/jsmn/jsmn.h
|
||||
[ -f $@ ]
|
||||
|
||||
daemon/jsmn.o: daemon/jsmn/jsmn.c
|
||||
$(COMPILE.c) -DJSMN_STRICT=1 $(OUTPUT_OPTION) $<
|
||||
|
||||
|
||||
Reference in New Issue
Block a user