-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 730 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 730 Bytes
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
# TODO: use native-image -jar option, apparently it can take a jarfile with an entrypoint
APP=graalvm
BINARY=graalvm.core
help:
@echo "Ensure you have graalvm"
@echo "JAVA_HOME: $(JAVA_HOME)"
which native-image
@echo ""
@echo "> make help"
@echo " shows this screen"
@echo "> make deps"
@echo " gets and unpacks all deps"
@echo "> make native"
@echo " builds the native binary"
deps:
lein clean
lein uberjar
cd target && jar xf $(APP)-0.1.0-SNAPSHOT-standalone.jar && cd ..
native:
cd target && native-image -H:+ReportUnsupportedElementsAtRuntime -H:EnableURLProtocols=http $(BINARY) && cd ..
@echo "built $(BINARY)"
@echo "graalvm docs at https://www.graalvm.org/docs/getting-started/"