Skip to content

Commit

Permalink
Add dist target
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Serdar committed Oct 25, 2018
1 parent 411809f commit 364b87b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@ lint:

build: fmt vet lint
@echo "+ $@"
@go build
@go build

dist: build test
{ \
tag=`git tag -l --points-at HEAD`; \
if [ ! -z $$tag ] ; then tag="-$$tag"; fi; \
tar cfz took$$tag.tar.gz took readme.md LICENSE ;\
}

test:
@echo "+ $@"
go test $(PKGS)
go test $(PKGS) -coverprofile=cover

clean:
@echo "+ $@"
Expand Down

0 comments on commit 364b87b

Please sign in to comment.