forked from AnkanMisra/MicroAI-Paygate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (46 loc) · 1.41 KB
/
Makefile
File metadata and controls
58 lines (46 loc) · 1.41 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.PHONY: all build test lint clean dev help
help:
@echo "MicroAI-Paygate Makefile targets:"
@echo ""
@echo " make all - Default target (alias for build)"
@echo " make build - Build all services"
@echo " make test - Run tests for all services"
@echo " make lint - Run all linters (check only)"
@echo " make format - Format code for all services"
@echo " make dev - Start full stack (gateway:3000, web:3001, verifier:3002)"
@echo " make clean - Remove build artifacts and generated files"
@echo " make help - Show this help message"
# Show help for unknown targets
.DEFAULT:
@echo "Unknown target: $@"
@$(MAKE) help
# Global
all: build
# Sub-projects
build-gateway:
cd gateway && go build -o bin/gateway
build-verifier:
cd verifier && cargo build --release
build-web:
cd web && bun run build
# Composite
build: build-gateway build-verifier build-web
test:
cd gateway && go test -v ./...
cd verifier && cargo test
cd web && bun run typecheck
cd web && bun run test:unit
lint:
cd gateway && go vet ./...
cd verifier && cargo fmt -- --check && cargo clippy -- -D warnings
cd web && bun run lint
format:
cd gateway && go fmt ./...
cd verifier && cargo fmt
cd web && bun run lint --fix
dev:
bun run stack
clean:
cd gateway && rm -rf bin/
cd verifier && cargo clean
cd web && rm -rf .next out