Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use linux as GOOS. Add linux64 task #3

Merged
merged 1 commit into from
Jul 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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