-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 891 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 891 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
.PHONY: build test ci install
build:
zig build -Doptimize=ReleaseFast
test:
zig build test --summary all
ci:
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/libflux.a" "$(HOME)/.local/lib/libflux.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)