summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ce33459..7f72ef4 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,8 @@ UNPACK_DIR = $(PWD)/unpack.$(ARCH)
BUILD_DIR = $(PWD)/build.$(ARCH)
INST_BASE = $(PWD)/inst.$(ARCH)
+SUITEDIR = /opt/dev-tools/gcc-suite
+
INST_BASE_LINUX = $(PWD)/inst.x86-linux64
XGCC_INST_DIR = $(INST_BASE_LINUX)/mingw64
@@ -938,6 +940,19 @@ wingcc-pack:
cd $(INST_BASE) && \
zip -qr $(PWD)/gcc-suite-$(VERSION_SUITE)-gcc-$(VERSION_GCC)-$(VERSION_MINGW)-x86-mingw64.zip ./$(WINGCC_ROOTNAME)
# ----------------------------------------------------------------------------
+#
+distribute: \
+ $(PWD)/gcc-suite-$(VERSION_SUITE)-gcc-$(VERSION_GCC)-$(VERSION_MINGW)-x86-mingw64.zip \
+ $(PWD)/gcc-suite-$(VERSION_SUITE)-xgcc-$(VERSION_GCC)-$(VERSION_MINGW)-x86-linux64.tgz \
+ $(PWD)/gcc-suite-$(VERSION_SUITE)-gcc-$(VERSION_GCC)-x86-linux64.tgz
+ mkdir -p $(SUITEDIR)/$(VERSION_SUITE)/x86-linux64
+ mkdir -p $(SUITEDIR)/$(VERSION_SUITE)/x86-mingw64
+ tar -zxf $(PWD)/gcc-suite-$(VERSION_SUITE)-xgcc-$(VERSION_GCC)-$(VERSION_MINGW)-x86-linux64.tgz \
+ -C $(SUITEDIR)/$(VERSION_SUITE)/x86-linux64/
+ tar -zxf $(PWD)/gcc-suite-$(VERSION_SUITE)-gcc-$(VERSION_GCC)-x86-linux64.tgz \
+ -C $(SUITEDIR)/$(VERSION_SUITE)/x86-linux64/
+ unzip $(PWD)/gcc-suite-$(VERSION_SUITE)-gcc-$(VERSION_GCC)-$(VERSION_MINGW)-x86-mingw64.zip \
+ -d $(SUITEDIR)/$(VERSION_SUITE)/x86-mingw64/
clean:
rm -Rf $(UNPACK_DIR)