aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-07 23:09:21 -0700
committerFuwn <[email protected]>2024-06-07 23:11:58 -0700
commit5fb40c1cc632c8d064e906f0c4aedc6de35bb8fd (patch)
treeead107c12cabbb7421c558731d709725582ba52d /Makefile
parentfeat(decompile): confirm overwrite (diff)
downloadworldsplayer_source_editor-5fb40c1cc632c8d064e906f0c4aedc6de35bb8fd.tar.xz
worldsplayer_source_editor-5fb40c1cc632c8d064e906f0c4aedc6de35bb8fd.zip
build: add makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d17e93b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+ifdef JAVAC
+else
+ JAVAC=~/Downloads/jdk1.6.0_45/bin/javac
+endif
+
+ifdef WORLDSPLAYER_JAR
+else
+ WORLDSPLAYER_JAR=${HOME}/.local/share/bottles/bottles/WorldsPlayer/drive_c/Program Files (x86)/Worlds Inc/WorldsPlayer - BowieFull/lib/worlds.jar
+endif
+
+.PHONY: compile decompile install options
+
+all: options
+
+compile:
+ JAVAC=${JAVAC} ./bin/compile
+
+decompile:
+ WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR} ./bin/decompile
+
+install:
+ cp ./out/worlds.jar "${WORLDSPLAYER_JAR}"
+
+options:
+ @echo "JAVAC=${JAVAC}"
+ @echo "WORLDSPLAYER_JAR=${WORLDSPLAYER_JAR}"