Skip to content

Commit

Permalink
makefile: add
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed May 26, 2016
1 parent 6d68b6e commit a1012c5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
TEST?=$(glide novendor)
NAME = $(shell awk -F\" '/^const Name/ { print $$2 }' main.go)
VERSION = $(shell awk -F\" '/^const Version/ { print $$2 }' main.go)

all: deps build

deps:
glide install

updatedeps:
glide update

build: deps
@mkdir -p bin/
go build -o bin/$(NAME)

test: deps
go test $(TEST) $(TESTARGS) -timeout=30s -parallel=4

package: test build
tar -zcvf bin/distributive.tar.gz distributive

.PHONY: all deps updatedeps build test package

0 comments on commit a1012c5

Please sign in to comment.