Skip to content

Commit

Permalink
Merge pull request #3 from gauravmanchanda/patch-1
Browse files Browse the repository at this point in the history
Use linux as GOOS. Add linux64 task
  • Loading branch information
mgerb authored Jul 11, 2019
2 parents 037ea8e + 05c6038 commit 87da808
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
VERSION := $(shell git describe --tags)

linux:
GOOS=darwin GOARCH=386 go build -o ./dist/mgphoto-linux -ldflags="-X main.version=${VERSION}" ./*.go
linux32:
GOOS=linux GOARCH=386 go build -o ./dist/mgphoto-linux32 -ldflags="-X main.version=${VERSION}" ./*.go

linux64:
GOOS=linux GOARCH=amd64 go build -o ./dist/mgphoto-linux64 -ldflags="-X main.version=${VERSION}" ./*.go

mac:
GOOS=darwin GOARCH=amd64 go build -o ./dist/mgphoto-mac -ldflags="-X main.version=${VERSION}" ./*.go

Expand All @@ -12,4 +15,4 @@ windows:
clean:
rm -rf ./dist

all: linux mac windows
all: linux32 linux64 mac windows

0 comments on commit 87da808

Please sign in to comment.