leverage makefile to run build tasks (#976)

remove circle ci
This commit is contained in:
Joshua Harshman
2020-02-20 12:25:38 -07:00
committed by GitHub
parent 3c2624538b
commit 39cf99f556
5 changed files with 73 additions and 66 deletions

23
cobra/Makefile Normal file
View File

@ -0,0 +1,23 @@
XC_OS="linux darwin"
XC_ARCH="amd64"
XC_PARALLEL="2"
BIN="../bin"
SRC=$(shell find . -name "*.go")
ifeq (, $(shell which gox))
$(warning "could not find gox in $(PATH), run: go get github.com/mitchellh/gox")
endif
.PHONY: all build
default: all
all: build
build:
gox \
-os=$(XC_OS) \
-arch=$(XC_ARCH) \
-parallel=$(XC_PARALLEL) \
-output=$(BIN)/{{.Dir}}_{{.OS}}_{{.Arch}} \
;