1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-30 08:19:00 +01:00

Add a race target (didn't find anything)

This commit is contained in:
Oliver Steele 2017-07-13 19:01:30 -04:00
parent f98dd4129f
commit 8bee1ea96a
2 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ _site
*.prof
coverage.out
/dist
gojekyll-race

View File

@ -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