makefile 242 Bytes
Newer Older
Daniel Vogel's avatar
Daniel Vogel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# super simple makefile
# call it using 'make NAME=name_of_code_file_without_extension'
# (assumes a .java extension)
NAME = "Main"

all:
	@echo "Compiling..."
	javac *.java

run: all
	@echo "Running..."
	java $(NAME)

clean:
	rm -rf *.class