Skip to content

Commit

Permalink
Add makefile for brew installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen Shukla committed Oct 5, 2018
1 parent 8b02d24 commit 2d27a42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ all: build-deps build fmt vet lint test
GLIDE_NOVENDOR=$(shell glide novendor | grep -v proctord)

setup:
mkdir -p $(GOPATH)/bin
go get -u github.com/golang/lint/golint
which glide &>/dev/null
if [ $? -ne 0 ]; then curl https://glide.sh/get | sh; fi
@echo $(shell scripts/setup.sh)

build-deps:
glide install
Expand Down
6 changes: 6 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

mkdir -p $GOPATH/bin
go get -u github.com/golang/lint/golint
which glide > /dev/null 2>&1
if [ "0" -ne "$?" ]; then curl https://glide.sh/get | sh; fi

0 comments on commit 2d27a42

Please sign in to comment.