Skip to content

Commit

Permalink
integrate glide into make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Feb 29, 2016
1 parent 4dd0a59 commit a2c2720
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
.PHONY: install_deps build package clobber
.PHONY: build_deps build goinstall gouninstall package_deps package clobber
.DEFAULT_GOAL := build

build:
vendor:
@type glide >/dev/null 2>&1 || \
{ echo >&2 "I require glide but it is not installed. Aborting."; exit 1; }
glide install

build_deps:
@type go >/dev/null 2>&1 || \
{ echo >&2 "I require go but it is not installed. Aborting."; exit 1; }

build: vendor build_deps
go build -o bin/slacknimate

install:

# Standard go install, for people with a valid go / $GOPATH setup
goinstall:
go install .

uninstall:
gouninstall:
rm $(GOPATH)/bin/slacknimate


# For cross compiling and packaging releases
package_deps:
go get github.com/laher/goxc

Expand All @@ -18,5 +31,6 @@ package: package_deps build
--resources-include="README*,LICENSE*,examples" \
-d="builds" -bc="linux,!arm darwin windows" xc archive rmbin


clobber:
rm -rf builds bin
rm -rf builds bin vendor

0 comments on commit a2c2720

Please sign in to comment.