diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 2 insertions, 14 deletions
| @@ -394,21 +394,9 @@ ifdef NOT_REPO | |||
| 394 | printf "$(MSG_NOT_REPO)" | 394 | printf "$(MSG_NOT_REPO)" |
| 395 | endif | 395 | endif |
| 396 | ifndef SKIP_GIT | 396 | ifndef SKIP_GIT |
| 397 | $(QMK_BIN) git-submodule --sync | ||
| 397 | # Check if the submodules are dirty, and display a warning if they are | 398 | # Check if the submodules are dirty, and display a warning if they are |
| 398 | if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 50 --init lib/chibios; fi | 399 | if ! $(QMK_BIN) git-submodule --check 1> /dev/null 2>&1; then printf "$(MSG_SUBMODULE_DIRTY)"; fi |
| 399 | if [ ! -e lib/chibios-contrib ]; then git submodule sync lib/chibios-contrib && git submodule update --depth 50 --init lib/chibios-contrib; fi | ||
| 400 | if [ ! -e lib/lufa ]; then git submodule sync lib/lufa && git submodule update --depth 50 --init lib/lufa; fi | ||
| 401 | if [ ! -e lib/vusb ]; then git submodule sync lib/vusb && git submodule update --depth 50 --init lib/vusb; fi | ||
| 402 | if [ ! -e lib/printf ]; then git submodule sync lib/printf && git submodule update --depth 50 --init lib/printf; fi | ||
| 403 | if [ ! -e lib/pico-sdk ]; then git submodule sync lib/pico-sdk && git submodule update --depth 50 --init lib/pico-sdk; fi | ||
| 404 | if [ ! -e lib/lvgl ]; then git submodule sync lib/lvgl && git submodule update --depth 50 --init lib/lvgl; fi | ||
| 405 | git submodule status --recursive 2>/dev/null | \ | ||
| 406 | while IFS= read -r x; do \ | ||
| 407 | case "$$x" in \ | ||
| 408 | \ *) ;; \ | ||
| 409 | *) printf "$(MSG_SUBMODULE_DIRTY)";break;; \ | ||
| 410 | esac \ | ||
| 411 | done | ||
| 412 | endif | 400 | endif |
| 413 | rm -f $(ERROR_FILE) > /dev/null 2>&1 | 401 | rm -f $(ERROR_FILE) > /dev/null 2>&1 |
| 414 | $(eval $(call PARSE_RULE,$@)) | 402 | $(eval $(call PARSE_RULE,$@)) |
