]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
add makefile targets for source tarballs
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 20 Dec 2010 06:49:38 +0000 (07:49 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 20 Dec 2010 06:49:38 +0000 (07:49 +0100)
Makefile

index 6319795c66c0fd59d24c1cd510a6c9b2e7c24197..1bfe2db09ad4319d1d2591856b428faf77035aa6 100644 (file)
--- 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)