From 05c60388fe06212f8bb790d4a8bfa850d13702b6 Mon Sep 17 00:00:00 2001 From: Gaurav Manchanda Date: Sun, 7 Jul 2019 14:35:15 +0530 Subject: [PATCH] Use linux as GOOS. Add linux64 task --- makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index b7e58d2..41be6a8 100644 --- a/makefile +++ b/makefile @@ -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 @@ -12,4 +15,4 @@ windows: clean: rm -rf ./dist -all: linux mac windows +all: linux32 linux64 mac windows