Permalink
Browse files

Add makefile, related docs and update gitignore

  • Loading branch information...
k4k committed Sep 15, 2017
1 parent c5f3bfd commit 2bf671b7a4e09d6985bee1b0be18b440b3e1e747
Showing with 40 additions and 3 deletions.
  1. +1 −1 .gitignore
  2. +37 −0 Makefile
  3. +2 −2 README.md
@@ -1,2 +1,2 @@
webby-bot
bin/
vendor/
@@ -0,0 +1,37 @@
ifndef VERBOSE
MAKEFLAGS += --silent
endif
PKGS=$(shell go list ./... | grep -v /vendor)
GIT_SHA=$(shell git rev-parse --verify HEAD)
VERSION=$(shell cat VERSION)
PWD=$(shell pwd)
default: clean build
all: clean build
build: ## Make webby-bot binary
go build -o bin/webby-bot main.go
clean: ## Cleanup build files
rm -rf bin/*
install-tools:
GOIMPORTS_CMD=$(shell command -v goimports 2> /dev/null)
ifndef GOIMPORTS_CMD
go get golang.org/x/tools/cmd/goimports
endif
GOLINT_CMD=$(shell command -v golint 2> /dev/null)
ifndef GOLINT_CMD
go get github.com/golang/lint/golint
endif
GODEP_CMD=$(shell command -v dep 2> /dev/null)
ifndef GODEP_CMD
go get github.com/golang/dep/cmd/dep
endif
dep: install-tools
dep ensure
@@ -11,8 +11,8 @@ Building requires go dep:
```
$ git clone git@github.com:k4k/webby-bot.git
$ cd webby-bot
$ dep ensure
$ go build
$ make dep
$ make build
```
# Using Webby

0 comments on commit 2bf671b

Please sign in to comment.