From f49ceedb8543a2cf4e830c9db6d3354c9645265d Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 24 May 2016 12:18:29 +0100 Subject: [PATCH] Build system update. --- build/win32/build.sh | 9 +++++---- makefile | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build/win32/build.sh b/build/win32/build.sh index 276c493..0409024 100755 --- a/build/win32/build.sh +++ b/build/win32/build.sh @@ -3,13 +3,13 @@ cd `dirname $0` BUILDROOT="build/win32" -OUT="$BUILDROOT/tbftss" cd ../.. VERSION=$1 REVISION=$2 -SIZE=0 +FOLDER="tbftss-$1" +OUT="$BUILDROOT/$FOLDER" make -f makefile.win32 clean make -f makefile.win32 @@ -26,14 +26,15 @@ cp -r sound $OUT cp -r manual $OUT cp -r locale $OUT cp LICENSE $OUT +cp CHANGELOG $OUT cp README.md $OUT cp /usr/x86_64-w64-mingw32/bin/*.dll $OUT cd $BUILDROOT -zip -r tbftss-${VERSION}-${REVISION}.win32.zip tbftss +zip -r tbftss-${VERSION}-${REVISION}.win32.zip $FOLDER mv *.zip ../../dist -rm -rf tbftss +rm -rf $FOLDER diff --git a/makefile b/makefile index 5466c2f..3097507 100644 --- a/makefile +++ b/makefile @@ -25,9 +25,9 @@ CXXFLAGS += -g -lefence LFLAGS := `sdl2-config --libs` -lSDL2_mixer -lSDL2_image -lSDL2_ttf -lm -SHARED_FILES = LICENSE README.md data gfx manual music sound +SHARED_FILES = CHANGELOG LICENSE README.md data gfx manual music sound DIST_FILES = $(SHARED_FILES) locale tbftss -SRC_DIST_FILES = $(SHARED_FILES) src makefile* common.mk CHANGELOG +SRC_DIST_FILES = $(SHARED_FILES) src makefile* common.mk # linking the program. $(PROG): $(OBJS)