From: Rudolf Polzer Date: Mon, 20 Dec 2010 06:49:38 +0000 (+0100) Subject: add makefile targets for source tarballs X-Git-Tag: xonotic-v0.5.0~112 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=839a76da2cdc7a131011abccbed0a719c14fc58a;p=xonotic%2Fnetradiant.git add makefile targets for source tarballs --- diff --git a/Makefile b/Makefile index 6319795c..1bfe2db0 100644 --- a/Makefile +++ b/Makefile @@ -1006,4 +1006,16 @@ install-dll: binaries endif endif +release-src: BUILD_DATE := `date +%Y%m%d` +release-src: MAKEFILE_CONF := cross-Makefile.conf +release-src: INSTALLDIR := netradiant-$(RADIANT_VERSION)-$(BUILD_DATE) +release-src: + git archive --format=tar HEAD | bzip2 > $(INSTALLDIR).tar.bz2 + +release-win32: BUILD_DATE := `date +%Y%m%d` +release-win32: MAKEFILE_CONF := cross-Makefile.conf +release-win32: INSTALLDIR := netradiant-$(RADIANT_VERSION)-$(BUILD_DATE) +release-win32: install + 7za a -sfx../../../../../../../../../../$(HOME)/7z.sfx $(INSTALLDIR)-win32-7z.exe $(INSTALLDIR)/ + -include $(shell find . -name \*.d)