summaryrefslogtreecommitdiff
path: root/jlox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'jlox/Makefile')
-rw-r--r--jlox/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/jlox/Makefile b/jlox/Makefile
new file mode 100644
index 0000000..d4d0252
--- /dev/null
+++ b/jlox/Makefile
@@ -0,0 +1,11 @@
+# inserting args
+ifeq (run,$(firstword $(MAKECMDGOALS)))
+ RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
+ $(eval $(RUN_ARGS):;@:)
+endif
+
+build:
+ ./gradlew jar
+
+run:
+ ./gradlew jar && java -jar ./app/build/libs/app.jar $(RUN_ARGS)