-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (42 loc) · 1.55 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
.PHONY: repl test clean format-check format-fix
SHELL := /bin/bash
repl:
clojure -M:dev:test:repl
test:
clojure -M:dev:test:runner --focus :unit --reporter kaocha.report/documentation --no-capture-output
clean:
rm -rf target build
lint:
clojure -M:dev:test:clj-kondo --copy-configs --dependencies --parallel --lint "$(shell clojure -A:dev:test -Spath)"
clojure -M:dev:test:clj-kondo --lint "src:test" --fail-level "error"
install-native-image:
gu install native-image
build-uberjar:
clojure -X:uberjar :sync-pom true
build-config:
mkdir -p graalvm-config
java -agentlib:native-image-agent=config-output-dir=graalvm-config -jar build/tools-deps-helper.jar find-versions "org.clojure/clojure"
build-native:
native-image -cp "$(shell clojure -Spath):classes" \
"-H:+ReportExceptionStackTraces" \
"-H:+JNI" \
"-H:EnableURLProtocols=http,https,jar" \
"--enable-all-security-services" \
"-J-Dclojure.spec.skip-macros=true" \
"-J-Dclojure.compiler.direct-linking=true" \
"--initialize-at-build-time=clojure,k13labs,org.slf4j" \
"--initialize-at-build-time=org.eclipse.aether.transport.http.HttpTransporterFactory" \
"--report-unsupported-elements-at-runtime" \
"--verbose" \
"--no-fallback" \
"--no-server" \
"--allow-incomplete-classpath" \
"--trace-object-instantiation=java.lang.Thread" \
"-H:ConfigurationFileDirectories=graalvm-config" \
"k13labs.tools.deps.main" \
"build/tools-deps-helper"
build: install-native-image build-uberjar build-config build-native
format-check:
clojure -M:format-check
format-fix:
clojure -M:format-fix