-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 1.06 KB
/
Makefile
File metadata and controls
38 lines (30 loc) · 1.06 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
.PHONY: build test test-dual-mode interop-live ci install
build:
zig build -Doptimize=ReleaseFast
test:
zig build test --summary all
test-dual-mode:
zig build test-dual-mode-regression --summary all
interop-live:
./tools/lsquic_live_interop.sh
ci:
zig build test-dual-mode-regression --summary all
zig build test --summary all
@if [ "$(LIBFAST_RUN_LIVE_INTEROP)" = "1" ]; then ./tools/lsquic_live_interop.sh; else echo "Skipping live LSQUIC interop (set LIBFAST_RUN_LIVE_INTEROP=1 to enable)"; fi
zig build -Doptimize=ReleaseFast
install: build
install -Dm644 "./zig-out/lib/libfast.a" "$(HOME)/.local/lib/libfast.a"
# Release
# ==================================================================================================
TYPE ?= patch
HAS_REL := $(shell command -v git-rel 2>/dev/null)
release:
@if [ -z "$(HAS_REL)" ]; then \
echo "git-rel is not installed. Please install it first."; \
exit 1; \
fi
@if [ -z "$(TYPE)" ]; then \
echo "Release type not specified. Use 'make release TYPE=[patch|minor|major|m.m.p]'"; \
exit 1; \
fi
@git rel $(TYPE)