-
-
Notifications
You must be signed in to change notification settings - Fork 563
/
Makefile
40 lines (31 loc) · 1.34 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
build: typescript_build rust_build elixir_build
build_release: typescript_build_release rust_build_release elixir_build_release
test: typescript_test rust_test elixir_test
lint: typescript_lint rust_lint elixir_lint notice_file_lint
clean: typescript_clean rust_clean elixir_clean
very_clean: typescript_very_clean rust_very_clean elixir_very_clean
elixir_%:
$(MAKE) -C implementations/elixir $(@:elixir_%=%)
# run an elixir command in a nix environment, so that all tools are installed
nix_elixir_%:
nix develop ./tools/nix#elixir --command make elixir_$*
rust_%:
$(MAKE) -f implementations/rust/Makefile $(@:rust_%=%)
# run a rust command in a nix environment, so that all tools are installed
nix_rust_%:
nix develop ./tools/nix#rust --command make rust_$*
notice_file_update:
cargo deny --all-features list --config=tools/cargo-deny/deny.toml --layout crate --format json | ./tools/scripts/release/parseCrates.sh
swift_%:
$(MAKE) -C implementations/swift $(@:swift_%=%)
typescript_%:
$(MAKE) -C implementations/typescript $(@:typescript_%=%)
# run a typescript command in a nix environment, so that all tools are installed
nix_typescript_%:
nix develop ./tools/nix#typescript --command make typescript_$*
.PHONY: \
build build_release test lint clean very_clean \
elixir_% rust_% swift_% typescript_% \
nix_rust_% \
nix_typescript_% \
nix_elixir_% \