-
-
Save sshine/d77eb50b4e6347da1a8dd3f2c9cd324d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make | |
javac -g -cp src @<(find src -name "*.java") | |
/bin/sh: 1: Syntax error: "(" unexpected | |
make: *** [Makefile:12: default] Error 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The Java compiler | |
COMPILER = javac | |
# Directories that contain .class files for inclusion | |
CLASSPATH = src | |
# -g: Generates all debugging information, including local variables. By | |
# default, only line number and source file information is generated. | |
FLAGS = -g -cp $(CLASSPATH) | |
default: | |
$(COMPILER) $(FLAGS) @<(find src -name "*.java") | |
clean: | |
find . -name "*.class" -exec rm -f {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment