mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-22 08:25:38 +00:00
36 lines
477 B
Makefile
36 lines
477 B
Makefile
|
|
||
|
SOURCE_FILES := $(shell find . -type f -name "*.go")
|
||
|
|
||
|
default: validation build
|
||
|
|
||
|
.PHONY: validation
|
||
|
validation: test lint vet
|
||
|
|
||
|
.PHONY: test
|
||
|
test: .test
|
||
|
|
||
|
.test: $(SOURCE_FILES)
|
||
|
go test -v ./... && touch $@
|
||
|
|
||
|
.PHONY: lint
|
||
|
lint: .lint
|
||
|
|
||
|
.lint: $(SOURCE_FILES)
|
||
|
golint -set_exit_status ./... && touch $@
|
||
|
|
||
|
.PHONY: vet
|
||
|
vet: .vet
|
||
|
|
||
|
.vet: $(SOURCE_FILES)
|
||
|
go vet ./... && touch $@
|
||
|
|
||
|
.PHONY: build
|
||
|
build: gomtree
|
||
|
|
||
|
gomtree: $(SOURCE_FILES)
|
||
|
go build ./cmd/gomtree
|
||
|
|
||
|
clean:
|
||
|
rm -rf gomtree
|
||
|
|