Skip to content

Commit

Permalink
Generate binary at top of repository
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuoza committed Feb 2, 2021
1 parent 154900f commit fb026af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -20,4 +20,4 @@ goreleaser/build:
--rm-dist --skip-validate

clean:
rm -f cmd/switchbot/switchbot
rm -f switchbot

0 comments on commit fb026af

Please sign in to comment.