From fb026af6f066b18d96a48ae26fcdabd80a715acd Mon Sep 17 00:00:00 2001 From: Yasuharu Ozaki Date: Tue, 2 Feb 2021 21:37:58 +0900 Subject: [PATCH] Generate binary at top of repository --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bbfe8aa..aca598e 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ export GO111MODULE := on .PHONY: test binary install clean -cmd/switchbot/switchbot: *.go cmd/switchbot/*.go go.* - cd cmd/switchbot && go build -trimpath -ldflags "-s -w -X main.Version=${GIT_VER}" +switchbot: *.go cmd/switchbot/*.go go.* + go build -trimpath -ldflags "-s -w -X main.Version=${GIT_VER}" -o switchbot cmd/switchbot/main.go test: go test -v . @@ -20,4 +20,4 @@ goreleaser/build: --rm-dist --skip-validate clean: - rm -f cmd/switchbot/switchbot + rm -f switchbot