From fff9267c40a407f568a91ff653373c344c0a9209 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 15 Sep 2013 21:09:17 +0000 Subject: Update Windows build to generate multiple .zip packages, one for each game. Subversion-branch: /branches/v2-branch Subversion-revision: 2650 --- pkg/win32/GNUmakefile | 55 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 19 deletions(-) (limited to 'pkg') diff --git a/pkg/win32/GNUmakefile b/pkg/win32/GNUmakefile index 6b45152e..690da608 100644 --- a/pkg/win32/GNUmakefile +++ b/pkg/win32/GNUmakefile @@ -3,11 +3,11 @@ include ../config.make TOPLEVEL=../.. -EXE_FILES=$(TOPLEVEL)/src/$(PROGRAM_PREFIX)doom.exe \ - $(TOPLEVEL)/src/$(PROGRAM_PREFIX)heretic.exe \ - $(TOPLEVEL)/src/$(PROGRAM_PREFIX)hexen.exe \ - $(TOPLEVEL)/src/$(PROGRAM_PREFIX)server.exe \ - $(TOPLEVEL)/src/$(PROGRAM_PREFIX)setup.exe +DOOM_ZIP=$(PROGRAM_PREFIX)doom-$(PACKAGE_VERSION)-win32.zip +HERETIC_ZIP=$(PROGRAM_PREFIX)heretic-$(PACKAGE_VERSION)-win32.zip +HEXEN_ZIP=$(PROGRAM_PREFIX)hexen-$(PACKAGE_VERSION)-win32.zip +STRIFE_ZIP=$(PROGRAM_PREFIX)strife-$(PACKAGE_VERSION)-win32.zip +ZIPS=$(DOOM_ZIP) $(HERETIC_ZIP) $(HEXEN_ZIP) $(STRIFE_ZIP) DLL_FILES=$(TOPLEVEL)/src/SDL.dll \ $(TOPLEVEL)/src/SDL_mixer.dll \ @@ -15,26 +15,43 @@ DLL_FILES=$(TOPLEVEL)/src/SDL.dll \ DOC_FILES += README.OPL -ZIP=$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-win32.zip +all: $(ZIPS) -$(ZIP) : staging - zip -j -r $@ staging/ +$(ZIPS): + unix2dos $ staging/INSTALL.txt - unix2dos staging/INSTALL.txt + > $@/INSTALL.txt clean: - rm -f $(ZIP) - rm -rf staging + rm -f $(ZIPS) + rm -rf staging-* -- cgit v1.2.3