-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 705 Bytes
/
Makefile
File metadata and controls
42 lines (30 loc) · 705 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
.PHONY: all server tools lsh duh clean test test-integration
# Output directory
BIN := bin
# Default target
all: server tools
# Server binary
server: $(BIN)/goshell
$(BIN)/goshell: cmd/goshell/*.go
@mkdir -p $(BIN)
go build -o $(BIN)/goshell ./cmd/goshell
# All tool binaries
tools: lsh duh
# Individual tools
lsh: $(BIN)/lsh
$(BIN)/lsh: cmd/lsh/*.go
@mkdir -p $(BIN)
go build -o $(BIN)/lsh ./cmd/lsh
duh: $(BIN)/duh
$(BIN)/duh: cmd/duh/*.go
@mkdir -p $(BIN)
go build -o $(BIN)/duh ./cmd/duh
# Run unit tests (default, fast)
test:
go test ./...
# Run all tests including integration tests
test-integration:
go test -tags=integration ./...
# Clean build artifacts
clean:
rm -rf $(BIN)