mirror of
https://github.com/rclone/rclone.git
synced 2024-12-19 01:03:42 +08:00
24 lines
406 B
Makefile
24 lines
406 B
Makefile
|
DIR?=./autorest/
|
||
|
|
||
|
default: build
|
||
|
|
||
|
build: fmt
|
||
|
go install $(DIR)
|
||
|
|
||
|
test:
|
||
|
go test $(DIR) || exit 1
|
||
|
|
||
|
vet:
|
||
|
@echo "go vet ."
|
||
|
@go vet $(DIR)... ; if [ $$? -eq 1 ]; then \
|
||
|
echo ""; \
|
||
|
echo "Vet found suspicious constructs. Please check the reported constructs"; \
|
||
|
echo "and fix them if necessary before submitting the code for review."; \
|
||
|
exit 1; \
|
||
|
fi
|
||
|
|
||
|
fmt:
|
||
|
gofmt -w $(DIR)
|
||
|
|
||
|
.PHONY: build test vet fmt
|