aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-03-23 11:50:01 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-03-23 11:50:01 +0100
commite7289f25089d68a070e00d522042e8aab79c62f6 (patch)
tree4af52b4dcf6f06a23a190c3ec6ae6f102ba990cb /Makefile
downloadsnake-e7289f25089d68a070e00d522042e8aab79c62f6.tar.gz
snake-e7289f25089d68a070e00d522042e8aab79c62f6.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d36209d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+JAVA_SRC = $(wildcard *.java)
+JAVA_OBJ = $(JAVA_SRC:.java=.class)
+
+%.class: %.java
+ javac $<
+
+.PHONY: snake
+snake: $(JAVA_OBJ)
+ java Snake
+
+.PHONY: clean
+clean:
+ rm -f *.class
+