-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 1.38 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
.PHONY: repl test clean deploy install format-check format-fix
SHELL := /bin/bash
repl:
clojure -M:dev:test:app:repl
test:
clojure -M:dev:test:app:runner --focus :unit --reporter kaocha.report/documentation --no-capture-output
clean:
rm -rf target build
lint:
clojure -M:dev:test:app:clj-kondo --copy-configs --dependencies --parallel --lint "$(shell clojure -A:dev:test -Spath)"
clojure -M:dev:test:app:clj-kondo --lint "src:test" --fail-level "error"
build:
clojure -X:jar :sync-pom true :jar "build/hierarchy.jar"
build-uberjar:
clojure -X:uberjar :sync-pom false :jar "build/hierarchy-test-app.jar"
build-native-config:
mkdir -p build/graalvm-config
java -agentlib:native-image-agent=config-output-dir=build/graalvm-config -jar "build/hierarchy-test-app.jar" hierarchy.main
build-native:
native-image -jar "build/hierarchy-test-app.jar" \
"-H:+ReportExceptionStackTraces" \
"-H:+JNI" \
"-H:EnableURLProtocols=http,https,jar" \
"-J-Dclojure.spec.skip-macros=true" \
"-J-Dclojure.compiler.direct-linking=true" \
"--report-unsupported-elements-at-runtime" \
"--verbose" \
"--no-fallback" \
"--no-server" \
"--allow-incomplete-classpath" \
"--trace-object-instantiation=java.lang.Thread" \
"build/hierarchy-test-app"
deploy: clean build
clojure -X:deploy-maven
install:
clojure -X:install-maven
format-check:
clojure -M:format-check
format-fix:
clojure -M:format-fix