Makefile: Use blunt force to ensure uavcan submodule is up to date

This commit is contained in:
Lorenz Meier 2015-10-14 12:13:20 +02:00
parent 4d7cc41921
commit 51707245bb
1 changed files with 8 additions and 3 deletions

View File

@ -104,13 +104,13 @@ endef
# --------------------------------------------------------------------
# Do not put any spaces between function arguments.
px4fmu-v1_default:
px4fmu-v1_default: git-init
$(call cmake-build,nuttx_px4fmu-v1_default)
px4fmu-v2_default:
px4fmu-v2_default: git-init
$(call cmake-build,nuttx_px4fmu-v2_default)
px4fmu-v2_simple:
px4fmu-v2_simple: git-init
$(call cmake-build,nuttx_px4fmu-v2_simple)
nuttx_sim_simple:
@ -181,6 +181,11 @@ distclean: clean
@git clean -d -f -x
@cd ../../../..
# XXX this is not the right way to fix it, but we need a temporary solution
# for average joe
git-init:
@git submodule update --init --recursive
# targets handled by cmake
cmake_targets = test upload package package_source debug debug_tui debug_ddd debug_io debug_io_tui debug_io_ddd check_weak libuavcan
$(foreach targ,$(cmake_targets),$(eval $(call cmake-targ,$(targ))))