-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
58 lines (39 loc) · 1.29 KB
/
makefile
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
49
50
51
52
53
54
55
56
57
58
build:
cargo build
cp_to_bin:
cp target/debug/esker /opt/homebrew/bin
install_locally: build cp_to_bin
build_linux:
cargo zigbuild --release --target x86_64-unknown-linux-gnu
build_mac_m1:
cargo build --release
build_mac_intel:
cargo build --release --target x86_64-apple-darwin
collect_builds:
cp target/release/esker out/esker
cd out; zip esker_mac_arm.zip esker
rm out/esker
cp target/x86_64-unknown-linux-gnu/release/esker out/esker
cd out; zip esker_x86_64-unknown-linux-gnu.zip esker
rm out/esker
cp target/x86_64-apple-darwin/release/esker out/esker
cd out; zip x86_64-apple-darwin.zip esker
rm out/esker
build_all_and_collect: build_linux build_mac_m1 build_linux collect_builds
# == Test Site Cmds ==
example_site_remove:
rm -rf tests/example_site/_esker/
example_site_new:
cd tests/example_site && ../../target/debug/esker new
example_site_build:
cd tests/example_site && ../../target/debug/esker build
example_site: example_site_remove example_site_new example_site_build
example_site_watch:
cd tests/example_site && ../../target/debug/esker watch
### -- Running test ---
test_cli_overwrite:
TRYCMD=overwrite cargo test --test cli_tests -- --nocapture
test_cli_dump:
TRYCMD=dump cargo test --test cli_tests -- --nocapture
test_cli:
cargo test --test cli_tests -- --nocapture