-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
80 lines (79 loc) · 3.09 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
MODULES := java-good-story kotlin-good-story kotlin-loom-good-story
export GS_MASSIVE_REPEATS := 10000
b: build
pre-build:
mvn clean install -DskipTests
build: pre-build
mvn clean install
build-java: pre-build
cd java-good-story && mvn clean install
build-kotlin: pre-build
cd kotlin-good-story && mvn clean install
build-kotlin-loom: pre-build
cd kotlin-loom-good-story && mvn clean install
build-intro: pre-build
cd coroutines-intro && mvn clean install
sdk-macos:
curl https://download.java.net/java/early_access/loom/6/openjdk-19-loom+6-625_macos-x64_bin.tar.gz --output openjdk-19.tar.gz
make sdk-unpack
mv jdk-19.jdk/Contents/Home loom-jdk
rm -r jdk-19.jdk
rm *.tar.gz
sdk-macos-arch:
curl https://download.java.net/java/early_access/loom/6/openjdk-19-loom+6-625_macos-aarch64_bin.tar.gz --output openjdk-19.tar.gz
make sdk-unpack
sdk-windows:
curl https://download.java.net/java/early_access/loom/6/openjdk-19-loom+6-625_windows-x64_bin.zip --output openjdk-19.zip
make sdk-unpack
sdk-linux:
curl https://download.java.net/java/early_access/loom/6/openjdk-19-loom+6-625_linux-x64_bin.tar.gz --output openjdk-19.tar.gz
tar -xvzf openjdk-19.tar.gz && mv jdk-19 loom-jdk
rm *.tar.gz
sdk-linux-arch:
curl https://download.java.net/java/early_access/loom/6/openjdk-19-loom+6-625_linux-aarch64_bin.tar.gz --output openjdk-19.tar.gz
make sdk-unpack
sdk-unpack:
tar -xvzf openjdk-19.tar.gz
test:
./loom-run.sh
java -version
cd kotlin-good-story && mvn clean install
create-headers:
echo "| Module | Method | Time Complexity | Space Complexity | Repetitions | Measured Duration | Machine |" > dump/java/Log.md
echo "|---|---|---|---|---|---|---|" >> dump/java/Log.md
echo "| Module | Method | Time Complexity | Space Complexity | Repetitions | Measured Duration | Machine |" > dump/kotlin/Log.md
echo "|---|---|---|---|---|---|---|" >> dump/kotlin/Log.md
echo "| Module | Method | Time Complexity | Space Complexity | Repetitions | Measured Duration | Machine |" > dump/kotlin-loom/Log.md
echo "|---|---|---|---|---|---|---|" >> dump/kotlin-loom/Log.md
clean:
cd dump && rm -r java/*.csv &
cd dump && rm -r kotlin/*.csv &
cd dump && rm -r kotlin-loom/*.csv &
build-run:
make create-headers
$(foreach module,$(MODULES), \
echo $(module) && cd $(module) && pwd && make set-jdk && make build-run && \
cd ..)
run:
make create-headers
$(foreach module,$(MODULES), \
echo $(module) && cd $(module) && pwd && make set-jdk && make run && \
cd ..)
build-run-local:
make create-headers
make sub-build-run-local
sub-build-run-local:
$(foreach module,$(MODULES), \
echo $(module) && cd $(module) && pwd && make set-jdk && make build-run-local && \
cd ..)
demi-mac:
brew install cavaliercoder/dmidecode/dmidecode
os-info-max:
/usr/sbin/system_profiler SPHardwareDataType
system-info:
uname -mprsv
deps-plugins-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/pluginUpdatesOne.sh | bash -s -- $(PARAMS)
deps-java-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/javaUpdatesOne.sh | bash
deps-quick-update: deps-plugins-update deps-java-update