-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhack-cli.mk
More file actions
21 lines (19 loc) · 557 Bytes
/
Copy pathhack-cli.mk
File metadata and controls
21 lines (19 loc) · 557 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
#SPDX-License-Identifier: MIT
# Install/Update to the latest CLI tool.
.PHONY: cli
cli:
@set -e; \
wget -O gf \
https://github.com/gogf/gf/releases/latest/download/gf_$(shell go env GOOS)_$(shell go env GOARCH) && \
chmod +x gf && \
./gf install -y && \
rm ./gf
# Check and install CLI tool.
.PHONY: cli.install
cli.install:
@set -e; \
gf -v > /dev/null 2>&1 || if [[ "$?" -ne "0" ]]; then \
echo "GoFame CLI is not installed, start proceeding auto installation..."; \
make cli; \
fi;