Skip to content

Commit 94166ad

Browse files
chore: update makefile commands
1 parent 38c3a36 commit 94166ad

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Proto files commands
2-
32
.PHONY: generate-proto-protoc
43
generate-proto-protoc:
4+
@echo "Generating proto files"
55
protoc -I ./api \
66
--go_out ./pkg --go_opt paths=source_relative \
77
--go-grpc_out ./pkg --go-grpc_opt paths=source_relative \
@@ -10,26 +10,34 @@ generate-proto-protoc:
1010

1111
.PHONY: generate-proto
1212
generate-proto:
13+
@echo "Generating proto files using buf"
1314
buf generate api
1415

1516
.PHONY: clean-proto
1617
clean-proto:
18+
@echo "Cleaning generated proto files"
1719
rm -rf pkg/{protobuf,google}
1820

1921
## CLI commands
20-
2122
.PHONY: build-cli
2223
build-cli:
23-
cd cli; go build -o okane_cli .; mv okane_cli ..
24+
@echo "Building okane cli app"
25+
go build -o okane_cli ./cli
2426

25-
## Server commands
27+
.PHONY: rm-cli
28+
rm-cli:
29+
@echo "Removing okane cli app"
30+
rm -rf okane_cli
2631

32+
## Server commands
2733
.PHONY: lint
2834
lint:
35+
@echo "Linting code using golangci-lint"
2936
golangci-lint run ./...
3037

3138
.PHONY: run-server
3239
run-server:
40+
@echo "Starting Okane server"
3341
go run cmd/main.go
3442

3543
## Development Server docker-compose commands

0 commit comments

Comments
 (0)