Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update Makefile commands #38

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Proto files commands

.PHONY: generate-proto-protoc
generate-proto-protoc:
@echo "Generating proto files"
protoc -I ./api \
--go_out ./pkg --go_opt paths=source_relative \
--go-grpc_out ./pkg --go-grpc_opt paths=source_relative \
Expand All @@ -10,26 +10,34 @@ generate-proto-protoc:

.PHONY: generate-proto
generate-proto:
@echo "Generating proto files using buf"
buf generate api

.PHONY: clean-proto
clean-proto:
@echo "Cleaning generated proto files"
rm -rf pkg/{protobuf,google}

## CLI commands

.PHONY: build-cli
build-cli:
cd cli; go build -o okane_cli .; mv okane_cli ..
@echo "Building okane cli app"
go build -o okane_cli ./cli

## Server commands
.PHONY: rm-cli
rm-cli:
@echo "Removing okane cli app"
rm -rf okane_cli

## Server commands
.PHONY: lint
lint:
@echo "Linting code using golangci-lint"
golangci-lint run ./...

.PHONY: run-server
run-server:
@echo "Starting Okane server"
go run cmd/main.go

## Development Server docker-compose commands
Expand Down