makefile 243 B

123456789101112131415
  1. # super simple makefile
  2. # call it using 'make NAME=name_of_code_file_without_extension'
  3. # (assumes a .java extension)
  4. NAME = "Hello"
  5. all:
  6. @echo "Compiling..."
  7. javac *.java
  8. run: all
  9. @echo "Running..."
  10. java $(NAME)
  11. clean:
  12. rm -rf *.class