-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 688 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 688 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
.PHONY: docs
test:
go test -race -timeout 10s ./...
build:
CGO_ENABLED=0 go build -ldflags "-s -w" -o ./out/infrared ./cmd/infrared
all: test build
run: build
./out/infrared -w .dev/infrared
bench:
go test -bench=. -run=x -benchmem -memprofile mem.prof -cpuprofile cpu.prof -benchtime=10s > 0.bench
go tool pprof cpu.prof
dev:
docker compose -f deployments/docker-compose.dev.yml -p infrared up --force-recreate --remove-orphans
dos:
CGO_ENABLED=0 go build -ldflags "-s -w" -o ./out/dos ./tools/dos
./out/dos
malpk:
CGO_ENABLED=0 go build -ldflags "-s -w" -o ./out/malpk ./tools/malpk
./out/malpk
docs:
cd ./docs && npm i && npm run docs:dev
lint:
golangci-lint run