build: hack together a quick way to build a win32 snapshot

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-03-13 12:55:35 +10:30
parent 1dc62b426a
commit 15eaf4b8a8
1 changed files with 14 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Tyrann's Quake utilities Makefile #
#####################################
.PHONY: all clean
.PHONY: all clean snapshot
default: all
@ -14,7 +14,7 @@ OPTIMIZED_CFLAGS ?= Y# Enable compiler optimisations (if DEBUG != Y)
TARGET_OS ?= $(HOST_OS)
# ============================================================================
TYRUTILS_RELEASE := v0.6
TYRUTILS_RELEASE := v0.7-prerelease
TYRUTILS_VERSION := $(shell \
git describe 2> /dev/null || printf '%s' $(TYRUTILS_RELEASE))
@ -358,3 +358,15 @@ fatbin2:
lipo -create bin/x86.vis bin/x86_64.vis bin/ppc.vis bin/ppc64.vis -output bin/vis
lipo -create bin/x86.bsputil bin/x86_64.bsputil bin/ppc.bsputil bin/ppc64.bsputil -output bin/bsputil
lipo -create bin/x86.bspinfo bin/x86_64.bspinfo bin/ppc.bspinfo bin/ppc64.bspinfo -output bin/bspinfo
DOC_FILES = COPYING README.txt vis.txt light.txt qbsp.txt changelog.txt
RELEASE_FILES = $(patsubst %,$(BIN_DIR)/%,$(APPS)) $(DOC_FILES)
# Strip the 'v' off the front of the git tag, if any
TYRUTILS_FILE_VERSION = $(patsubst v%,%,$(TYRUTILS_VERSION))
tyrutils-$(TYRUTILS_FILE_VERSION)-win32.zip: $(RELEASE_FILES)
rm -f $@
zip $@ $^
# TODO: detect default platform for snapshot, do cross builds?
snapshot: tyrutils-$(TYRUTILS_FILE_VERSION)-win32.zip