projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e5fae
)
Makefile: fix kafel submodule init for parallel build
author
Wiktor Garbacz
<wiktorg@google.com>
Mon, 27 Jan 2020 09:32:10 +0000
(10:32 +0100)
committer
Wiktor Garbacz
<wiktorg@google.com>
Mon, 27 Jan 2020 09:32:10 +0000
(10:32 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 6c24f741756a62cb61699a2ca5fc6950900a7388..27964533af5d650b40373e0a068d2d512c7b24ed 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-69,10
+69,14
@@
ifneq ($(NL3_EXISTS), yes)
endif
$(CXX) -o $(BIN) $(OBJS) $(LIBS) $(LDFLAGS)
-kafel/libkafel.a:
+.PHONY: kafel_init
+kafel_init:
ifeq ("$(wildcard kafel/Makefile)","")
git submodule update --init
endif
+
+kafel/include/kafel.h: kafel_init
+kafel/libkafel.a: kafel_init
$(MAKE) -C kafel
# Sequence of proto deps, which doesn't fit automatic make rules