This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
The following commit(s) were added to refs/heads/main by this push:
new b51bb7b Add .exe suffix to windows binary (#101)
b51bb7b is described below
commit b51bb7b9d5888f5d66bfdd5c4fd6ba8468aac655
Author: kezhenxu94 <[email protected]>
AuthorDate: Fri Apr 22 16:56:32 2022 +0800
Add .exe suffix to windows binary (#101)
---
.gitignore | 1 +
Makefile | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index c9eb1bb..16cbe49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@
# under the License.
.idea/
+.vscode/
/bin/
assets/assets.gen.go
.DS_Store
diff --git a/Makefile b/Makefile
index d2aafdf..c809572 100644
--- a/Makefile
+++ b/Makefile
@@ -58,10 +58,12 @@ test: clean
$(GO_TEST) ./... -coverprofile=coverage.txt -covermode=atomic
@>&2 echo "Great, all tests passed."
+windows: PROJECT_SUFFIX=.exe
+
.PHONY: $(PLATFORMS)
$(PLATFORMS):
mkdir -p $(OUT_DIR)
- GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags
"$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(PROJECT) cmd/$(PROJECT)/main.go
+ GOOS=$(os) GOARCH=$(ARCH) $(GO_BUILD) $(GO_BUILD_FLAGS) -ldflags
"$(GO_BUILD_LDFLAGS)" -o $(OUT_DIR)/$(os)/$(PROJECT)$(PROJECT_SUFFIX)
cmd/$(PROJECT)/main.go
.PHONY: build
build: windows linux darwin