Skip to content

Commit

Permalink
chore: update makefile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilSharma03 committed Dec 27, 2023
1 parent 38c3a36 commit 94166ad
Showing 1 changed file with 12 additions and 4 deletions.
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

0 comments on commit 94166ad

Please sign in to comment.