-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (36 loc) · 1.06 KB
/
Makefile
File metadata and controls
48 lines (36 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
39
40
41
42
43
44
45
46
47
48
.PHONY: build test ci ci-fast ci-integration integration-coturn install coturn-up coturn-down coturn-wait
build:
zig build -Doptimize=ReleaseFast
test:
zig build test --summary all
ci:
$(MAKE) ci-fast
ci-fast:
zig build test --summary all
zig build -Doptimize=ReleaseFast
ci-integration:
$(MAKE) integration-coturn
integration-coturn: coturn-up coturn-wait
zig build test-coturn-integration
install: build
install -Dm644 "./zig-out/lib/libdice.a" "$(HOME)/.local/lib/libdice.a"
coturn-up:
bash "./scripts/coturn_up.sh"
coturn-down:
bash "./scripts/coturn_down.sh"
coturn-wait:
bash "./scripts/coturn_wait.sh"
# 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)