aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcurly <curlybryce@protonmail.com>2022-08-18 11:56:43 -0600
committercurly <curlybryce@protonmail.com>2022-08-18 11:56:43 -0600
commit05ae9cd13fee07e7653e3d616e812ccedba8f1b9 (patch)
tree9b7b8b52f739fb5d4b8325b07f92fbfcf4f51734 /Makefile
parent6269c1642768b3212fb9a1ae935b7d14f72a71d5 (diff)
downloadtetris-05ae9cd13fee07e7653e3d616e812ccedba8f1b9.tar.gz
tetris-05ae9cd13fee07e7653e3d616e812ccedba8f1b9.tar.bz2
tetris-05ae9cd13fee07e7653e3d616e812ccedba8f1b9.zip
input feels good + small tweaks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e39b7ac
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+MODE = debug
+BUILD = build --$(MODE)
+
+ifeq ($(MODE), debug)
+ BUILD = build
+endif
+
+clean:
+ cargo clean
+
+build:
+ cargo $(BUILD)
+ mkdir -p target/$(MODE)/assets/
+ cp -r src/assets/ target/$(MODE)/
+
+all: build \ No newline at end of file