Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Fix submodules automatically updating to latest #70

Merged
merged 2 commits into from
Jul 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@
$(VERBOSE).SILENT:

# default target
default: update-proto-submodule
default: init

# git submodule for proto files

update-proto-submodule:
git submodule update --init --remote $(PROTO_ROOT)
@printf $(COLOR) "Update temporal-api submodule from remote..."
git submodule update --force --remote $(PROTO_ROOT)

install-proto-submodule:
@printf $(COLOR) "Install temporal-api submodule..."
git submodule update --init $(PROTO_ROOT)

init: install-proto-submodule

update: update-proto-submodule