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:
parent
f98dd4129f
commit
8bee1ea96a
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ _site
|
||||
*.prof
|
||||
coverage.out
|
||||
/dist
|
||||
gojekyll-race
|
||||
|
6
Makefile
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user