-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
41 lines (32 loc) · 1.06 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
.PHONY: all run_all build clean setup transpile rust java run_rust run_java
all: build run_all
run_all: run_rust run_java
clean:
rm -rf java/src java/build
rm -rf rust/src rust/target
setup:
clojure --version && cargo --version && gradle --version
build:
clojure -M -m kalai.exec.main --verbose
cd rust && (cargo fmt && cargo build) || cargo build
cd java && (gradle googleJavaFormat && gradle build) || gradle build
transpile:
clojure -M -m kalai.exec.main --verbose
cd rust && cargo fmt
rust:
cd rust && cargo build
java:
cd java && gradle build
run_rust:
cd rust && cargo test && cargo run run_examples
run_java:
cd java && gradle -PmainClass=a.Demo01 run
cd java && gradle -PmainClass=a.Demo02 run
cd java && gradle -PmainClass=a.Demo03 run
cd java && gradle -PmainClass=a.Demo04 run
cd java && gradle -PmainClass=b.Loops run
cd java && gradle -PmainClass=b.Requirer run
cd java && gradle -PmainClass=b.Simple run
cd java && gradle -PmainClass=b.TypeAlias run
cd java && gradle -PmainClass=b.Variable run
cd java && gradle -PmainClass=c.Persistent run