Makefile : Force sbt to use JAVA_HOME jdk. Ugly.

This commit is contained in:
Dmitry Voronin 2024-09-23 11:41:13 +03:00
parent 72d142cb3d
commit f2974fea9c
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,5 +1,9 @@
# HACK: sbt seems to ignore JAVA_HOME by default, force it to use the correct jdk.
sbt = sbt $(sbt_args)
sbt_args = -java-home $(JAVA_HOME)
run:
sbt run
$(sbt) run
clean:
sbt clean
$(sbt) clean