Created
January 23, 2022 06:39
-
-
Save kooooohe/3ba58f827a450a2d8a088347d302f006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: help | |
help: | |
@awk -F ':|##' '/^[^\t].+?:.*?##/ { printf "\033[36m%-22s\033[0m %s\n", $$1, $$NF }' $(MAKEFILE_LIST) | |
### global | |
CYAN := \033[96m | |
RED := \033[95m | |
NC := \033[0m | |
DEFAULT_BUCKET_NAME := static | |
.PHONY: init submodule/checkout submodule/update | |
init: submodule ## リポジトリのセットアップ処理 submodule, minio/initを実行 | |
submodule: submodule/checkout submodule/update ## submodule/checkout, submodule/updateを実行 | |
submodule/checkout: ## submoduleのリポジトリそれぞれでデフォルトブランチにチェックアウトする | |
git submodule foreach -q --recursive 'git switch $$(git config -f $$toplevel/.gitmodules submodule.$$name.branch)' | |
submodule/update: ## submoduleのリポジトリそれぞれを最新の状態にpullする | |
git submodule update --remote --merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment