APL/DEV 3.1/TP4/quiz/Makefile

60 lines
2.2 KiB
Makefile
Raw Normal View History

2022-10-05 11:07:41 +02:00
JAVAC_OPTIONS = -implicit:none -d build -classpath build -sourcepath "src:tmp"
JAVA_OPTIONS = -classpath build
PROJECT_PATH = fr/iutfbleau/quiz
JAR_NAME = quiz.jar
JAR_OPTIONS = cvfe $(JAR_NAME) $(PROJECT_PATH).Startup -C build fr
jar : build/$(PROJECT_PATH)/Startup.class
jar $(JAR_OPTIONS)
exec : build/$(PROJECT_PATH)/Startup.class
java $(JAVA_OPTIONS) $(PROJECT_PATH)/Startup
rm :
rm -rf build/*
build/$(PROJECT_PATH)/Startup.class : view controller model
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/Startup.java
view : build/$(PROJECT_PATH)/view/ChoiceConfirm.class \
build/$(PROJECT_PATH)/view/QuestionShower.class \
build/$(PROJECT_PATH)/view/Window.class
build/$(PROJECT_PATH)/view/ChoiceConfirm.class : src/$(PROJECT_PATH)/view/ChoiceConfirm.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/view/ChoiceConfirm.java
build/$(PROJECT_PATH)/view/QuestionShower.class : src/$(PROJECT_PATH)/view/QuestionShower.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/view/QuestionShower.java
build/$(PROJECT_PATH)/view/Window.class : src/$(PROJECT_PATH)/view/Window.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/view/Window.java
controller : build/$(PROJECT_PATH)/controller/ChoiceValidation.class \
build/$(PROJECT_PATH)/controller/Navigation.class
build/$(PROJECT_PATH)/controller/ChoiceValidation.class : src/$(PROJECT_PATH)/controller/ChoiceValidation.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/controller/ChoiceValidation.java
build/$(PROJECT_PATH)/controller/Navigation.class : src/$(PROJECT_PATH)/controller/Navigation.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/controller/Navigation.java
model : build/$(PROJECT_PATH)/model/QuestionSource.class \
build/$(PROJECT_PATH)/model/Question.class \
build/$(PROJECT_PATH)/model/Choice.class
build/$(PROJECT_PATH)/model/QuestionSource.class : src/$(PROJECT_PATH)/model/QuestionSource.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/model/QuestionSource.java
build/$(PROJECT_PATH)/model/Question.class : src/$(PROJECT_PATH)/model/Question.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/model/Question.java
build/$(PROJECT_PATH)/model/Choice.class : src/$(PROJECT_PATH)/model/Choice.java
javac $(JAVAC_OPTIONS) src/$(PROJECT_PATH)/model/Choice.java