diff --git a/Makefile b/Makefile index 4351204..b43c610 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,23 @@ -build: - odin run . -out:space_invaders.exe -debug +EXE=space_invaders +REL_FOLDER=release_x64_win +DEB_FOLDER=debug_x64_win +BIN_FOLDER=./bin + +build: clean + odin run . -out:bin/${EXE}.exe -debug + +build_release: clean + odin build . -out:bin/${EXE}_rel.exe -o:speed -subsystem:windows clean: - rm -rf ./space_invaders.exe + rm -rf ${BIN_FOLDER}/${EXE}.* + rm -rf ${BIN_FOLDER}/${EXE}_rel.* + +package: build_release + rm -rf ${BIN_FOLDER}/${REL_FOLDER} + mkdir ${BIN_FOLDER}/${REL_FOLDER} + cp -r ./assets/ ${BIN_FOLDER}/${REL_FOLDER}/ + cp ${BIN_FOLDER}/${EXE}_rel.exe ${BIN_FOLDER}/${REL_FOLDER}/${EXE}.exe run: space_invaders.exe