Skip to content

Commit

Permalink
stupid makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Endicott committed Oct 19, 2018
1 parent f4c29e4 commit b57ab34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ configure:


build-linux:
export GOOS="linux"
export GOARCH="amd64"
export GOOS=linux
export GOARCH=amd64
go build -o ./$(build_dir_linux)/gossamer -ldflags "-X main.version=$(version)"
chmod +x ./$(build_dir_linux)/gossamer
@cd ./$(build_dir_linux) && tar zcf ../$(build_dir)/$(packageNameNix) .

build-mac:
export GOOS="darwin"
export GOARCH="amd64"
export GOOS=darwin
export GOARCH=amd64
go build -o ./$(build_dir_mac)/gossamer -ldflags "-X main.version=$(version)"
./$(build_dir_mac)/gossamer
@cd ./$(build_dir_mac) && tar zcf ../$(build_dir)/$(packageNameMac) .

build-windows:
export GOOS="windows"
export GOARCH="amd64"
export GOOS=windows
export GOARCH=amd64
go build -o ./$(build_dir_windows)/gossamer.exe -ldflags "-X main.version=$(version)"
@cd ./$(build_dir_windows) && tar zcf ../$(build_dir)/$(packageNameWindows) .

Expand Down

0 comments on commit b57ab34

Please sign in to comment.