unit_tests to init git modules

This commit is contained in:
rusefi 2019-08-25 20:15:14 -04:00
parent c3d9330696
commit 1fbd3dec45
1 changed files with 10 additions and 0 deletions

View File

@ -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.