#COMS E6111 # Project 2 # Jahyun Kim # jk3111 ifeq (run,$(firstword $(MAKECMDGOALS))) RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) $(eval $(RUN_ARGS):;@:) endif JCC = javac JVM = java JDFLAG = -g CLASSPATH = -cp ./commons-codec-1.9.jar:./json-simple-1.1.1.jar:./google-api-client-1.18.0-rc.jar:./google-http-client-1.18.0-rc.jar:./httpcore-4.0.1.jar default: InfoboxCreator.class AnswerMachine.class Project2.class InfoboxCreator.class: InfoboxCreator.java $(JCC) $(JDFLAG) $(CLASSPATH) InfoboxCreator.java AnswerMachine.class: AnswerMachine.java $(JCC) $(JDFLAG) $(CLASSPATH) AnswerMachine.java Project2.class: Project2.java InfoboxCreator.java AnswerMachine.java $(JCC) $(JDFLAG) $(CLASSPATH) Project2.java InfoboxCreator.java AnswerMachine.java program: Project2.class $(JVM) $(CLASSPATH):. Project2 .PHONY: run run: program @echo program $(RUN_ARGS) clean: $(RM) *.class