Skip to content

Instantly share code, notes, and snippets.

@maugern
Last active June 22, 2016 12:37
Show Gist options
  • Save maugern/69fffa4a5b7402b78461911455c8a744 to your computer and use it in GitHub Desktop.
Save maugern/69fffa4a5b7402b78461911455c8a744 to your computer and use it in GitHub Desktop.
My java Makefile
JFLAGS = -g
JC = javac
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
CLASSES = *.java
default: classes
classes: $(CLASSES:.java=.class)
# RM is a predefined macro in make (RM = rm -f)
clean:
$(RM) *.class bin/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment