-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·35 lines (32 loc) · 794 Bytes
/
Makefile
File metadata and controls
executable file
·35 lines (32 loc) · 794 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
.PHONY: all clean test build run nix docker-build docker-run docker-exec docker-stop docker-rm benchmark
OCI_IMAGE := ghcr.io/nooneknowspeter/cpplings:main
run:
zig build run
build:
zig build
solutions:
zig build
./zig-out/bin/cpplings_cli -s
patches:
zig build
./zig-out/bin/cpplings_cli -p
compile-commands:
zig build compile-flags
nix-shell:
nix --extra-experimental-features "nix-command flakes" develop
docker-build:
docker buildx build -t ${OCI_IMAGE} .
docker-run:
docker run -itd -v .:/cpplings --name cpplings ${OCI_IMAGE}
docker-exec:
docker exec -it -w "/cpplings" cpplings bash
docker-stop:
docker container stop cpplings
docker-rm:
docker rm -f cpplings
format:
treefmt
lint:
treefmt --ci --config-file treefmt.lint.toml
benchmark:
hyperfine -i "zig build cli"