From 392bc4f203444460eddb75a221714050cb9a145c Mon Sep 17 00:00:00 2001 From: zv0n Date: Sat, 30 Jan 2021 23:14:12 +0100 Subject: [PATCH] TETRIS: Add windows_release target to Makefile --- sdlpp/Makefile | 1 + tetris/Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sdlpp/Makefile b/sdlpp/Makefile index ffe1f70..786133f 100644 --- a/sdlpp/Makefile +++ b/sdlpp/Makefile @@ -7,6 +7,7 @@ UNAME_S := Windows CXX = cl CXXFLAGS = -MD -EHsc /DDLLEXPORT OBJEXT = obj +RM = del else UNAME_S := $(shell uname -s) CXX ?= g++ diff --git a/tetris/Makefile b/tetris/Makefile index eed71e6..f073fbf 100644 --- a/tetris/Makefile +++ b/tetris/Makefile @@ -68,6 +68,11 @@ libsdlpp.dll: ../sdlpp cp ../sdlpp/libsdlpp.dll . 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: LD_LIBRARY_PATH=$$(pwd) ./tetris