diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f4ebb8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +main.exe diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca606f3 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +OPA=opa +OPA_OPTIONS= + +GIT=git + +LOGS=error.log access.log +BUILD_DIRS=_build _tracks *.opx +SRC=src/tetris.opa src/main.opa + +EXEC=main.exe + +all: + $(OPA) $(OPA_OPTIONS) $(SRC) -o $(EXEC) + +clean: + rm -f $(EXEC) + rm -fr $(BUILD_DIRS) + rm -fr $(LOGS) + $(GIT) clean -f diff --git a/README b/README index 142947b..52f5970 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ @author Matthieu Guffroy BUILDING - opa src/tetris.opa src/main.opa -o main.exe + make LAUNCHING @@ -21,4 +21,4 @@ TODO LIST : * display next object FUTURE : -* Multiplayer (maybe a tetrinet like :) ) \ No newline at end of file +* Multiplayer (maybe a tetrinet like :) )