-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (37 loc) · 816 Bytes
/
Copy pathMakefile
File metadata and controls
50 lines (37 loc) · 816 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
40
41
42
43
44
45
46
47
48
49
.PHONY: build build-server build-cli run-server run-cli test clean deps
# Build all binaries
build: build-server build-cli
# Build HTTP server binary
build-server:
go build -o bin/quicrawl-server cmd/server/main.go
# Build CLI binary
build-cli:
go build -o bin/quicrawl-cli cmd/cli/main.go
# Build unified binary
build-unified:
go build -o bin/quicrawl main.go
# Run HTTP server
run-server:
go run cmd/server/main.go
# Run CLI
run-cli:
go run cmd/cli/main.go
# Run unified binary in server mode
run-unified-server:
go run main.go -mode=server
# Run unified binary in CLI mode
run-unified-cli:
go run main.go -mode=cli
# Install dependencies
deps:
go mod tidy
go mod download
# Run tests
test:
go test ./...
# Clean build artifacts
clean:
rm -rf bin/
# Create bin directory
bin:
mkdir -p bin