Skip to content

Commit

Permalink
Compile for linux, macos and windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Mosler committed Nov 16, 2022
1 parent 2531425 commit cce4c95
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
bin: linux-bin darwin-bin windows-bin

bin:
go build -ldflags "-s -w" -o bin/booxsync cmd/booxsync/main.go
linux-bin:
GOOS=linux go build -ldflags "-s -w" -o bin/booxsync-linux-amd64 cmd/booxsync/main.go
darwin-bin:
GOOS=darwin go build -ldflags "-s -w" -o bin/booxsync-darwin-amd64 cmd/booxsync/main.go
windows-bin:
GOOS=windows go build -ldflags "-s -w" -o bin/booxsync-windows-amd64.exe cmd/booxsync/main.go
run:
go run cmd/booxsync/main.go
clean:
Expand Down

0 comments on commit cce4c95

Please sign in to comment.