reaproveitamento-poo-java

commit e9c23aa9242b77fda7a9dfc67a7dfe8852f612e1

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

all: introduce a simple makefile

Fuck IDEs

 Makefile | 14 ++++++++++++++


diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..37e8ec1327be46db3bad8650cd728e18e512e25e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+.PHONY: build jar run clean
+
+build:
+	javac -d bin $$(find src -name "*.java")
+
+jar: build
+	@jar cfe app.jar org.porcellis.Main -C bin .
+
+run: build
+	@java -cp bin org.porcellis.Main
+
+clean:
+	rm -f bin/*.class