Skip to content

Commit

Permalink
fix: update makefile
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Apr 8, 2024
1 parent 3efe3ef commit 1cbd961
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/Makefile

This file was deleted.

17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,21 @@ $(PB2DIR_ROOT):
$(PB2PYS): proto/deps $(PB2DIR_ROOT) $(SHADOWS)

$(VALD_DIR):
git clone --depth 1 https://$(VALDREPO) $(VALD_DIR)
git clone https://$(VALDREPO) $(VALD_DIR)

.PHONY: vald/clone
## clone vald repository
vald/clone: $(VALD_DIR)

.PHONY: vald/checkout
## checkout vald repository
vald/checkout: $(VALD_DIR)
cd $(VALD_DIR) && git checkout ${VALD_CHECKOUT_TARGET_NAME}

.PHONY: vald/origin/sha/print
## print origin VALD_SHA value
vald/origin/sha/print: $(VALD_DIR)
@cd $(VALD_DIR) && git rev-parse HEAD | tr -d '\n'

.PHONY: vald/sha/print
## print VALD_SHA value
Expand Down Expand Up @@ -166,3 +180,4 @@ $(BINDIR)/buf:
"https://github.com/bufbuild/buf/releases/download/$$version/buf-$(shell uname -s)-$(shell uname -m)" \
-o "${BINDIR}/buf" && \
chmod +x "${BINDIR}/buf"

0 comments on commit 1cbd961

Please sign in to comment.