-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 903 Bytes
/
Makefile
File metadata and controls
41 lines (32 loc) · 903 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
35
36
37
38
39
40
41
# Build ember (Rust) and, on macOS, ember-vz (Swift).
# Places both binaries side-by-side in target/{debug,release}/ so ember
# can find ember-vz at runtime.
UNAME := $(shell uname -s)
.PHONY: build release clean fmt check clippy test
build:
cargo build
ifeq ($(UNAME),Darwin)
cd ember-vz && swift build
codesign --force --sign - --entitlements ember-vz/entitlements.plist ember-vz/.build/debug/ember-vz
cp ember-vz/.build/debug/ember-vz target/debug/
endif
release:
cargo build --release
ifeq ($(UNAME),Darwin)
cd ember-vz && swift build -c release
codesign --force --sign - --entitlements ember-vz/entitlements.plist ember-vz/.build/release/ember-vz
cp ember-vz/.build/release/ember-vz target/release/
endif
clean:
cargo clean
ifeq ($(UNAME),Darwin)
cd ember-vz && swift package clean
endif
fmt:
cargo fmt
check:
cargo check
clippy:
cargo clippy -- -D warnings
test:
cargo test