2024-05-03 08:04:15 +02:00
|
|
|
### VARIABLES ###
|
|
|
|
|
2024-04-09 12:55:46 +02:00
|
|
|
DOCDIR := ./doc
|
2024-05-03 01:32:06 +02:00
|
|
|
SRCDIR := ./src
|
2024-04-09 12:55:46 +02:00
|
|
|
SRC := $(wildcard $(SRCDIR)/*.java)
|
2024-05-03 01:32:06 +02:00
|
|
|
OUTDIR := ./build
|
2024-05-03 08:04:15 +02:00
|
|
|
JCFLAGS := -encoding UTF-8 -implicit:none
|
|
|
|
JC = javac
|
|
|
|
JVM = java
|
|
|
|
JVMFLAGS =
|
|
|
|
|
|
|
|
### REGLES ESSENTIELLES ###
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GridMaker.class : ${SRCDIR}/GridMaker.java ${OUTDIR}/Window.class ${OUTDIR}/HomeView.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GridMaker.java -d $(OUTDIR)
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-03 08:58:05 +02:00
|
|
|
${OUTDIR}/GridSolver.class : ${SRCDIR}/GridSolver.java ${OUTDIR}/Window.class ${OUTDIR}/HomeView.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GridSolver.java -d $(OUTDIR)
|
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/Window.class : ${SRCDIR}/Window.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/Window.java -d $(OUTDIR)
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/Title.class : ${SRCDIR}/Title.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/Title.java -d $(OUTDIR)
|
2024-04-29 18:20:37 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/Button.class : ${SRCDIR}/Button.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/Button.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/CongratulationsDialog.class : ${SRCDIR}/CongratulationsDialog.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/CongratulationsDialog.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/DialogManager.class : ${SRCDIR}/DialogManager.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/DialogManager.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMCase.class : ${SRCDIR}/GMCase.java ${OUTDIR}/GMGrid.class ${OUTDIR}/GMCaseKeyListener.class ${OUTDIR}/GMCaseMouseListener.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMCase.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMCaseKeyListener.class : ./GMCaseKeyListener.java ${OUTDIR}/GMCase.class ${OUTDIR}/GMGrid.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMCaseKeyListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMCaseMouseListener.class : ./GMCaseMouseListener.java ${OUTDIR}/GMCase.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMCaseMouseListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMChecker.class : ${SRCDIR}/GMChecker.java ${OUTDIR}/GMGrid.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMChecker.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMGrid.class : ${SRCDIR}/GMGrid.java ${OUTDIR}/GMCase.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMGrid.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMHowToCreateController.class : ${SRCDIR}/GMHowToCreateController.java ${OUTDIR}/GMHowToCreateDialogManager.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMHowToCreateController.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMHowToCreateDialogManager.class : ${SRCDIR}/GMHowToCreateDialogManager.java ${OUTDIR}/GMHowToCreateView.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMHowToCreateDialogManager.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMHowToCreateView.class : ${SRCDIR}/GMHowToCreateView.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMHowToCreateView.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMImport.class : ${SRCDIR}/GMImport.java ${OUTDIR}/GMGrid.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMImport.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMResetGrid.class : ${SRCDIR}/GMResetGrid.java ${OUTDIR}/GMGrid.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMResetGrid.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/${OUTDIR}/Rules.class : ${SRCDIR}/Rules.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/Rules.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMSaver.class : ${SRCDIR}/GMSaver.java ${OUTDIR}/GMGrid.class ${OUTDIR}/GMChecker.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMSaver.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMSaverActionListener.class : ${SRCDIR}/GMSaverActionListener.java ${OUTDIR}/Window.class ${OUTDIR}/GMGrid.class ${OUTDIR}/GMSaver.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMSaverActionListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMUserInterfaceController.class : ${SRCDIR}/GMUserInterfaceController.java ${OUTDIR}/Window.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMUserInterfaceController.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GMUserInterfaceView.class : ${SRCDIR}/GMUserInterfaceView.java ${OUTDIR}/GMGrid.class ${OUTDIR}/Window.class ${OUTDIR}/GMResetGrid.class ${OUTDIR}/GMImport.class ${OUTDIR}/GMSaverActionListener.class ${OUTDIR}/GMHowToCreateController.class ${OUTDIR}/Rules.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GMUserInterfaceView.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSCase.class : ${SRCDIR}/GSCase.java ${OUTDIR}/GSGrid.class ${OUTDIR}/GSCaseMouseListener.class ${OUTDIR}/GSTest.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSCase.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSCaseMouseListener.class : ${SRCDIR}/GSCaseMouseListener.java ${OUTDIR}/GSCase.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSCaseMouseListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSGrid.class : ${SRCDIR}/GSGrid.java ${OUTDIR}/GSCase.class ${OUTDIR}/GSTest.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSGrid.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSImport.class : ${SRCDIR}/GSImport.java ${OUTDIR}/Window.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSImport.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:58:05 +02:00
|
|
|
${OUTDIR}/GSMenu.class : ${SRCDIR}/GSMenu.java ${OUTDIR}/Title.class ${OUTDIR}/Button.class ${OUTDIR}/Window.class
|
2024-05-03 08:04:15 +02:00
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSMenu.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSMenuController.class : ${SRCDIR}/GSMenuController.java ${OUTDIR}/GSMenu.class ${OUTDIR}/Window.class ${OUTDIR}/GSGrid.class ${OUTDIR}/GSMenu.class ${OUTDIR}/GSImport.class ${OUTDIR}/GSPlay.class ${OUTDIR}/GSPlayController.class ${OUTDIR}/GSSolver.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSMenuController.java -d $(OUTDIR)
|
2024-04-09 12:55:46 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSPlay.class : ${SRCDIR}/GSPlay.java ${OUTDIR}/GSGrid.class ${OUTDIR}/Button.class ${OUTDIR}/Window.class ${OUTDIR}/GSPlayController.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSPlay.java -d $(OUTDIR)
|
2024-04-29 16:26:16 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSPlayController.class : ${SRCDIR}/GSPlayController.java ${OUTDIR}/GSPlay.class ${OUTDIR}/GSWin.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSPlayController.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSSolver.class : ${SRCDIR}/GSSolver.java ${OUTDIR}/GSGrid.class ${OUTDIR}/Window.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSSolver.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSTest.class : ${SRCDIR}/GSTest.java ${OUTDIR}/GSGrid.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSTest.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/GSWin.class : ${SRCDIR}/GSWin.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/GSWin.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/HomeButtonClickListener.class : ${SRCDIR}/HomeButtonClickListener.java ${OUTDIR}/Window.class ${OUTDIR}/GSMenu.class ${OUTDIR}/GSMenuController.class ${OUTDIR}/GMUserInterfaceView.class ${OUTDIR}/DialogManager.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/HomeButtonClickListener.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/HomeView.class : ${SRCDIR}/HomeView.java ${OUTDIR}/MusicButton.class ${OUTDIR}/Window.class ${OUTDIR}/Title.class ${OUTDIR}/HomeButtonClickListener.class ${OUTDIR}/Button.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/HomeView.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:58:05 +02:00
|
|
|
${OUTDIR}/MusicPlayer.class : ${SRCDIR}/MusicPlayer.java
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/MusicPlayer.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/MusicButton.class : ${SRCDIR}/MusicButton.java ${OUTDIR}/MusicPlayer.class
|
2024-05-03 08:58:05 +02:00
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/MusicButton.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/RulesDialogManager.class : ${SRCDIR}/RulesDialogManager.java ${OUTDIR}/RulesSudoku.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/RulesDialogManager.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
${OUTDIR}/RulesSudoku.class : ${SRCDIR}/RulesSudoku.java ${OUTDIR}/Title.class
|
|
|
|
${JC} ${JCFLAGS} ${SRCDIR}/RulesSudoku.java -d $(OUTDIR)
|
2024-05-03 01:32:06 +02:00
|
|
|
|
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
### REGLES OPTIONNELLES ###
|
2024-05-03 08:58:05 +02:00
|
|
|
|
2024-05-03 08:04:15 +02:00
|
|
|
GridMaker : $(OFILES)
|
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridMaker
|
|
|
|
|
|
|
|
GridSolver : $(OFILES)
|
|
|
|
${JVM} ${JVMFLAGS} -cp $(OUTDIR) GridSolver
|
2024-05-03 01:32:06 +02:00
|
|
|
|
|
|
|
doc :
|
|
|
|
javadoc -d $(DOCDIR) $(SRC)
|
2024-04-09 12:55:46 +02:00
|
|
|
|
|
|
|
clean :
|
|
|
|
-rm -rf $(OUTDIR)
|
|
|
|
-rm -rf $(DOCDIR)
|
|
|
|
|
2024-05-03 08:58:05 +02:00
|
|
|
.PHONY : clean doc
|