Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
make sure the executable name is "rio"
Browse files Browse the repository at this point in the history
  • Loading branch information
stiangrindvoll committed Nov 21, 2017
1 parent 9547586 commit e07a5a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
VERSION := $(shell git describe --tags)
BUILD_DIR?=$(shell pwd)/build
NAME=rio

all: tools deps build-all compress

Expand All @@ -11,14 +12,14 @@ deps:
dep ensure

build:
go build -o rio -ldflags "-X main.version=${VERSION}" rio.go
go build -o ${NAME} -ldflags "-X main.version=${VERSION}" main.go


build-all:
mkdir -p ${BUILD_DIR}/
gox -verbose -ldflags "-X main.version=${VERSION}" \
-osarch="linux/amd64 darwin/amd64 windows/amd64 freebsd/amd64" \
-output="${BUILD_DIR}/{{.Dir}}-${VERSION}-{{.OS}}-{{.Arch}}"
-output="${BUILD_DIR}/${NAME}-${VERSION}-{{.OS}}-{{.Arch}}"

compress:
gzip -v ${BUILD_DIR}/*
Expand Down
File renamed without changes.

0 comments on commit e07a5a0

Please sign in to comment.