From 1fbd3dec454871386e288a4077f0d4a90f29336a Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 25 Aug 2019 20:15:14 -0400 Subject: [PATCH] unit_tests to init git modules --- unit_tests/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unit_tests/Makefile b/unit_tests/Makefile index 7154f158fb..d163991924 100644 --- a/unit_tests/Makefile +++ b/unit_tests/Makefile @@ -3,6 +3,16 @@ # NOTE: Can be overridden externally. # + +ifeq ("$(wildcard googletest/LICENSE)","") +$(info Invoking "git submodule update --init") +$(shell git submodule update --init) +$(info Invoked "git submodule update --init") +# make is not happy about newly checked out module for some reason but next invocation would work +$(error Please run 'make' again. Please make sure you have 'git' command in PATH) +endif + + PROJECT_DIR = ../firmware # Compiler options here.