Browse Source

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

sbg
Lorenz Meier 9 years ago
parent
commit
51707245bb
  1. 11
      Makefile

11
Makefile

@ -104,13 +104,13 @@ endef @@ -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 @@ -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))))

Loading…
Cancel
Save