aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/kyoh86/exportloopref/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/kyoh86/exportloopref/Makefile')
-rw-r--r--vendor/github.com/kyoh86/exportloopref/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/kyoh86/exportloopref/Makefile b/vendor/github.com/kyoh86/exportloopref/Makefile
new file mode 100644
index 000000000..4d3ef22f7
--- /dev/null
+++ b/vendor/github.com/kyoh86/exportloopref/Makefile
@@ -0,0 +1,16 @@
+.PHONY: gen lint test install man
+
+VERSION := `git vertag get`
+COMMIT := `git rev-parse HEAD`
+
+gen:
+ go generate ./...
+
+lint: gen
+ golangci-lint run
+
+test: lint
+ go test -v --race ./...
+
+install: test
+ go install -a -ldflags "-X=main.version=$(VERSION) -X=main.commit=$(COMMIT)" ./...