From cd9f4f33a593e8eea8a0314b776d1ad3ef847462 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 7 Jul 2014 17:51:30 +0200 Subject: [PATCH] Turn instructions into a makefile command, allowing Windows GUI kids to create a make target in Eclipse just for this --- Makefile | 4 ++++ Tools/check_submodules.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7703cc04eb..8ec5277e22 100644 --- a/Makefile +++ b/Makefile @@ -216,6 +216,10 @@ $(NUTTX_SRC): checksubmodules: $(Q) (./Tools/check_submodules.sh) +.PHONY: updatesubmodules +updatesubmodules: + $(Q) (git submodule update) + # # Testing targets # diff --git a/Tools/check_submodules.sh b/Tools/check_submodules.sh index d31c1588c7..1156490d7b 100755 --- a/Tools/check_submodules.sh +++ b/Tools/check_submodules.sh @@ -6,7 +6,7 @@ if [ -d NuttX/nuttx ]; if [ "$STATUSRETVAL" == "" ]; then echo "Checked mavlink submodule, correct version found" else - echo "mavlink sub repo not at correct version. Try 'git submodule update'" + echo "mavlink sub repo not at correct version. Try 'make updatesubmodules'" echo "or follow instructions on http://pixhawk.org/dev/git/submodules" exit 1 fi @@ -22,7 +22,7 @@ if [ -d mavlink/include/mavlink/v1.0 ]; if [ "$STATUSRETVAL" == "" ]; then echo "Checked NuttX submodule, correct version found" else - echo "NuttX sub repo not at correct version. Try 'git submodule update'" + echo "NuttX sub repo not at correct version. Try 'make updatesubmodules'" echo "or follow instructions on http://pixhawk.org/dev/git/submodules" exit 1 fi