mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Makefile: Use blunt force to ensure uavcan submodule is up to date
This commit is contained in:
11
Makefile
11
Makefile
@@ -104,13 +104,13 @@ endef
|
|||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Do not put any spaces between function arguments.
|
# Do not put any spaces between function arguments.
|
||||||
|
|
||||||
px4fmu-v1_default:
|
px4fmu-v1_default: git-init
|
||||||
$(call cmake-build,nuttx_px4fmu-v1_default)
|
$(call cmake-build,nuttx_px4fmu-v1_default)
|
||||||
|
|
||||||
px4fmu-v2_default:
|
px4fmu-v2_default: git-init
|
||||||
$(call cmake-build,nuttx_px4fmu-v2_default)
|
$(call cmake-build,nuttx_px4fmu-v2_default)
|
||||||
|
|
||||||
px4fmu-v2_simple:
|
px4fmu-v2_simple: git-init
|
||||||
$(call cmake-build,nuttx_px4fmu-v2_simple)
|
$(call cmake-build,nuttx_px4fmu-v2_simple)
|
||||||
|
|
||||||
nuttx_sim_simple:
|
nuttx_sim_simple:
|
||||||
@@ -181,6 +181,11 @@ distclean: clean
|
|||||||
@git clean -d -f -x
|
@git clean -d -f -x
|
||||||
@cd ../../../..
|
@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
|
# 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
|
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))))
|
$(foreach targ,$(cmake_targets),$(eval $(call cmake-targ,$(targ))))
|
||||||
|
|||||||
Reference in New Issue
Block a user