TETRIS: Add windows_release target to Makefile

This commit is contained in:
zv0n 2021-01-30 23:14:12 +01:00
parent ba1e2a2dc5
commit 392bc4f203
2 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@ UNAME_S := Windows
CXX = cl CXX = cl
CXXFLAGS = -MD -EHsc /DDLLEXPORT CXXFLAGS = -MD -EHsc /DDLLEXPORT
OBJEXT = obj OBJEXT = obj
RM = del
else else
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
CXX ?= g++ CXX ?= g++

View File

@ -68,6 +68,11 @@ libsdlpp.dll: ../sdlpp
cp ../sdlpp/libsdlpp.dll . cp ../sdlpp/libsdlpp.dll .
cp ../sdlpp/libsdlpp.lib . cp ../sdlpp/libsdlpp.lib .
windows_release: ../Release/Tetris
cp tetris.exe testfont.ttf libsdlpp.dll block.png ../Release/Tetris
rm ../Release/Tetris.zip
cd ../Release && zip -r Tetris.zip Tetris
start: start:
LD_LIBRARY_PATH=$$(pwd) ./tetris LD_LIBRARY_PATH=$$(pwd) ./tetris