release building: more stuff

This commit is contained in:
Rudolf Polzer 2010-12-20 08:09:10 +01:00
parent fd02c5f803
commit 4d8ac8bf0b

View File

@ -1007,22 +1007,24 @@ install-dll: binaries
endif endif
endif endif
# release building... NOT for general users
# these may use tools not in the list that is checked by the build system
release-src: BUILD_DATE := $(shell date +%Y%m%d) release-src: BUILD_DATE := $(shell date +%Y%m%d)
release-src: MAKEFILE_CONF := cross-Makefile.conf release-src: MAKEFILE_CONF := cross-Makefile.conf
release-src: INSTALLDIR := netradiant-$(RADIANT_VERSION_NUMBER)-$(BUILD_DATE) release-src: INSTALLDIR := netradiant-$(RADIANT_VERSION_NUMBER)-$(BUILD_DATE)
release-src: release-src:
git archive --format=tar HEAD | bzip2 > $(INSTALLDIR).tar.bz2 $(GIT) archive --format=tar HEAD | bzip2 > $(INSTALLDIR).tar.bz2
release-win32: BUILD_DATE := $(shell date +%Y%m%d) release-win32: BUILD_DATE := $(shell date +%Y%m%d)
release-win32: MAKEFILE_CONF := cross-Makefile.conf release-win32: MAKEFILE_CONF := cross-Makefile.conf
release-win32: INSTALLDIR := netradiant-$(RADIANT_VERSION_NUMBER)-$(BUILD_DATE) release-win32: INSTALLDIR := netradiant-$(RADIANT_VERSION_NUMBER)-$(BUILD_DATE)
release-win32: all release-win32: all
7za a -sfx../../../../../../../../../../$(HOME)/7z.sfx $(INSTALLDIR)-win32-7z.exe $(INSTALLDIR)/ 7za a -sfx../../../../../../../../../../$(HOME)/7z.sfx $(INSTALLDIR)-win32-7z.exe $(INSTALLDIR)/
$(MAKE) clean
release-all: release-all:
$(GIT) clean -xdf
$(MAKE) release-src $(MAKE) release-src
$(MAKE) clean
$(MAKE) release-win32 $(MAKE) release-win32
$(MAKE) clean
-include $(shell find . -name \*.d) -include $(shell find . -name \*.d)