Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomilon committed Sep 6, 2020
1 parent 57351b4 commit fba068d
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 @@ -20,12 +20,12 @@ test:
go test -cover ./...

build-macos:
GOOS=darwin $(GOBUILD) -o main.go -o $(RELEASEDIR)/gstatic_macos
GOOS=darwin $(GOBUILD) -ldflags="-s -w" -o main.go -o $(RELEASEDIR)/gstatic_macos

build-linux:
GOOS=linux $(GOBUILD) -o main.go -o $(RELEASEDIR)/gstatic_linux
GOOS=linux $(GOBUILD) -ldflags="-s -w" -o main.go -o $(RELEASEDIR)/gstatic_linux

build-win: setup
GOOS=windows GOARCH=386 $(GOBUILD) -o main.go -o $(RELEASEDIR)/gstatic.exe
GOOS=windows GOARCH=386 $(GOBUILD) -ldflags="-s -w" -o main.go -o $(RELEASEDIR)/gstatic.exe

release: clean build-linux build-win build-macos

0 comments on commit fba068d

Please sign in to comment.