-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 819 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 819 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
run:
@echo "Running the program..."
go run ./examples/main.go
@echo "Program completed."
test:
@echo "Running tests..."
go test -v -cover -coverprofile=coverage.out ./manhattan ./utils
@echo "Tests completed."
bench:
@echo "Running test bench..."
go test -bench=. -benchmem ./manhattan > benchmark.txt
@echo "Test bench completed."
build:
@echo "Building manhattan binary..."
cd ./examples && \
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ./manhattan-app main.go
@echo "Binary built: manhattan-app"
up:
@echo Starting Docker images...
docker-compose up -d
@echo Docker images started!
down:
@echo Stopping docker compose...
docker-compose down
@echo Done!
up_build: build up
@echo "Building manhattan binary and starting Docker images..."
.phony: run test bench build up down up_build