-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
370e90c
commit ed721e8
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/bin | ||
/out | ||
/tmp | ||
/zip | ||
/.idea | ||
*.iml | ||
*.log | ||
*.zip | ||
/*.idea | ||
/*.iml | ||
.DS_Store | ||
Thumbs.db |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@echo off | ||
setlocal | ||
|
||
if "%1"=="" ( | ||
echo Autostart | ||
GOTO autostart | ||
) else ( | ||
echo Parsing | ||
GOTO loop | ||
) | ||
|
||
:autostart | ||
if not exist "bin" ( | ||
echo Build | ||
mkdir "bin" | ||
javac -d bin -cp src;res;lib\common\*;lib\x86\* src\Main.java | ||
) | ||
goto RUN | ||
|
||
:loop | ||
if x%1 equ x goto done | ||
goto checkParam | ||
|
||
:paramError | ||
echo %1 n'est pas une option valide | ||
echo Usage: make.bat [build^|run^|clean...] | ||
goto next | ||
|
||
:next | ||
shift /1 | ||
goto loop | ||
|
||
:checkParam | ||
if "%1" equ "build" goto BUILD | ||
if "%1" equ "clean" goto CLEAN | ||
if "%1" equ "run" goto RUN | ||
goto paramError | ||
|
||
:BUILD | ||
echo Build | ||
if not exist "bin" mkdir "bin" | ||
javac -d bin -cp src;res;lib\common\*;lib\x86\* src\Main.java | ||
GOTO next | ||
|
||
:CLEAN | ||
echo Clean | ||
rmdir /Q /S bin | ||
GOTO next | ||
|
||
:RUN | ||
echo Run | ||
java -Djava.library.path=sys\x86 -cp bin;res;lib\common\*;lib\x86\* Main | ||
GOTO next | ||
|
||
:done |