From: Wiktor Garbacz Date: Mon, 27 Jan 2020 09:32:10 +0000 (+0100) Subject: Makefile: fix kafel submodule init for parallel build X-Git-Tag: 3.0~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3b28b7dbf905d356cad0f80de6ba89bd195971c;p=platform%2Fupstream%2Fnsjail.git Makefile: fix kafel submodule init for parallel build --- diff --git a/Makefile b/Makefile index 6c24f74..2796453 100644 --- 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