-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (31 loc) · 829 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Default target: print this help message
.PHONY: help
.DEFAULT_GOAL := help
help:
@echo 'Usage:'
@echo ' make <target>'
@echo ''
@echo 'Targets:'
@sed -n 's/^##//p' $(MAKEFILE_LIST) | column -t -s ':' | sed -e 's/^/ /'
## genkit: Run Genkit locally
.PHONY: genkit
genkit:
cd examples/openai && genkit start -o
## test: Test the Go modules within this package
.PHONY: test
test:
go test -v ./...
## tidy: Tidy modfiles, format and lint .go files
.PHONY: tidy
tidy:
go mod tidy -v
go fmt ./...
gofmt -s -w .
golangci-lint run
## publish: Publish the Go modules to the registry
.PHONY: publish
publish:
@if [ -z "$(version)" ]; then echo "Error: version is not set"; exit 1; fi
git tag $(version)
git push origin $(version)
GOPROXY=proxy.golang.org go list -m github.com/yukinagae/genkit-go-plugins@$(version)