added package step for dist to makefile
This commit is contained in:
parent
920acc687e
commit
02ca71ec5f
1 changed files with 18 additions and 3 deletions
21
Makefile
21
Makefile
|
|
@ -1,8 +1,23 @@
|
||||||
build:
|
EXE=space_invaders
|
||||||
odin run . -out:space_invaders.exe -debug
|
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:
|
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:
|
run:
|
||||||
space_invaders.exe
|
space_invaders.exe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue