Skip to content

Commit

Permalink
Merge pull request #1 from SKAhack/v0.1.0
Browse files Browse the repository at this point in the history
v0.1.0
  • Loading branch information
skahack authored Apr 6, 2017
2 parents 7e2ada9 + 6e5a96d commit cf1f860
Show file tree
Hide file tree
Showing 11 changed files with 632 additions and 194 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin
vendor
.local.vimrc
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,29 @@ LDFLAGS := -ldflags="-s -w -X \"main.Version=$(VERSION)\" -X \"main.Revision=$(R
bin/$(NAME): $(SRCS)
@go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o bin/$(NAME)

dep:
ifeq ($(shell command -v dep 2> /dev/null),)
go get -u github.com/golang/dep/...
endif

deps: dep
dep ensure
.PHONY: deps
deps:
glide install

.PHONY: install
install:
go install $(LDFLAGS)

.PHONY: clean
clean:
rm -rf bin
rm -rf vendor/*
rm -rf dist

DIST_DIRS := find ./ -type d -exec
.PHONY: dist
dist: bin/${NAME}
mkdir -p dist
cd bin && \
$(DIST_DIRS) tar -zcf ../dist/$(NAME)-$(VERSION).tar.gz {} \; && \
$(DIST_DIRS) zip -r ../dist/$(NAME)-$(VERSION).zip {} \; && \
cd ..

.PHONY: deps clean install dist
.PHONY: test
test:
@go test $$(go list ./... | grep -v '/vendor/') -cover
Loading

0 comments on commit cf1f860

Please sign in to comment.