-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 674 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (31 loc) · 674 Bytes
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
36
37
38
39
.DEFAULT_GOAL := help
help:
@echo
@echo "Usage: make [command]"
@echo
@echo "Commands:"
@echo
@echo " build-server Build server app"
@echo " build-client Build client app"
@echo
@echo " run-server Run server app"
@echo " run-client Run client app"
@echo
@echo " test Run tests"
@echo " fmt Format code"
@echo
build-server:
@go build -o ./bin/server ./cmd/server/*.go
build-client:
@go build -o ./bin/client ./cmd/client/*.go
run-server:
@./bin/server
run-client:
@./bin/client
test:
@go test ./... -v
fmt:
@go fmt ./...
# used just for demp
powtcp:
@docker-compose up