aboutsummaryrefslogtreecommitdiff
path: root/Makefile.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-05 17:46:31 +0000
committerFuwn <[email protected]>2021-05-05 17:46:31 +0000
commitc74f058799c43c4596ce62f53c04453d24868085 (patch)
treeb3cb1cb237b4a947ca21cf653448b6b92ecec0ff /Makefile.toml
parentfeat(prompt): null handling and help command (diff)
downloadwhirl-c74f058799c43c4596ce62f53c04453d24868085.tar.xz
whirl-c74f058799c43c4596ce62f53c04453d24868085.zip
feat(make): use cargo-make instead of gnu make
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml55
1 files changed, 55 insertions, 0 deletions
diff --git a/Makefile.toml b/Makefile.toml
new file mode 100644
index 0000000..1949319
--- /dev/null
+++ b/Makefile.toml
@@ -0,0 +1,55 @@
+# -------------
+# | Variables |
+# -------------
+[env]
+# This variable will vary depending on where you installed Worlds, ideally, you
+# should know the correct value for your own system.
+#
+# If you DON'T know the correct value, DO NOT file an issue on GitHub, ask
+# someone within the Whirlsplash Discord server;
+# https://discord.com/invite/8hn6padWF6.
+#
+# See line 49!
+WORLDS_PATH = "C:\\Program Files (x86)\\Worlds Inc\\WorldsPlayer - Win7\\WorldsPlayer.exe"
+
+# ------------
+# | Wrappers |
+# ------------
+[tasks.fmt]
+command = "cargo"
+args = ["fmt"]
+
+[tasks.check]
+command = "cargo"
+args = ["check"]
+
+[tasks.clippy]
+command = "cargo"
+args = ["clippy"]
+
+# -------------
+# | Executors |
+# -------------
+[tasks.checkf]
+dependencies = ["fmt", "check"]
+
+[tasks.checkfc]
+dependencies = ["fmt", "check", "clippy"]
+
+[tasks.help]
+dependencies = ["checkf"]
+command = "cargo"
+args = ["run", "--", "help"]
+
+[tasks.run]
+dependencies = ["checkf"]
+command = "cargo"
+args = ["run", "--", "run"]
+
+# This task also depends on your system configuration, same goes as read above.
+[tasks.start_client]
+command = "gsudo"
+args = ["${WORLDS_PATH}"]
+
+[tasks.runc]
+dependencies = ["start_client", "run"]