diff --git a/.gitignore b/.gitignore index 8439ac5..ace420f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _site *.prof coverage.out /dist +gojekyll-race diff --git a/Makefile b/Makefile index f07956a..1cd6dd5 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,7 @@ LDFLAGS=-ldflags "-X ${PACKAGE}.commands.Version=${COMMIT_HASH}" .PHONY: build clean deps setup install lint test help $(BINARY): $(SOURCES) - go build ${LDFLAGS} -o ${BINARY} ${PACKAGE}/cmd/gojekyll - + go build ${LDFLAGS} -o ${BINARY} ${PACKAGE} build: $(BINARY) ## compile the package clean: ## remove binary files @@ -21,6 +20,9 @@ clean: ## remove binary files deps: ## list dependencies go list -f '{{join .Imports "\n"}}' ./... | grep -v ${PACKAGE} | grep '\.' | sort | uniq +race: + go build -race ${LDFLAGS} -o ${BINARY}-race ${PACKAGE} + setup: ## install dependencies and development tools go get -u github.com/alecthomas/gometalinter gometalinter --install