Author: cazfi
Date: Sun Apr 23 21:12:58 2017
New Revision: 35281

URL: http://svn.gna.org/viewcvs/freeciv?rev=35281&view=rev
Log:
Support multiple make jobs in msys2 installer build

See hrm Feature #653645

Modified:
    trunk/doc/README.msys2
    trunk/windows/installer_msys2/Makefile

Modified: trunk/doc/README.msys2
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.msys2?rev=35281&r1=35280&r2=35281&view=diff
==============================================================================
--- trunk/doc/README.msys2      (original)
+++ trunk/doc/README.msys2      Sun Apr 23 21:12:58 2017
@@ -172,6 +172,9 @@
  list in: https://msdn.microsoft.com/en-us/library/6sehtctf.aspx
  Current default is 0x0601 (Windows 7).
 
+ It's possible to set number of make jobs used in the build by
+ setting suitable make parameter to MAKE_PARAMS variable, e,g,
+ MAKE_PARAMS="-j3"
 
  Problems
 ====================================

Modified: trunk/windows/installer_msys2/Makefile
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/windows/installer_msys2/Makefile?rev=35281&r1=35280&r2=35281&view=diff
==============================================================================
--- trunk/windows/installer_msys2/Makefile      (original)
+++ trunk/windows/installer_msys2/Makefile      Sun Apr 23 21:12:58 2017
@@ -73,7 +73,7 @@
        # configure
        cd build-$(WINARCH)-$(GUI); ../../../configure 
FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" 
--with-project-definition=../../../bootstrap/snapshot.project 
--enable-client=$(GUI) --with-followtag="windows-S3_1" --with-tinycthread 
--without-readline --enable-fcdb=sqlite3 --with-sqlite3-prefix=/$(ARCHDIR) 
--enable-fcmp=$(FCMP) $(EXTRA_CONFIG)
        # make
-       make -C build-$(WINARCH)-$(GUI)
+       make -C build-$(WINARCH)-$(GUI) $(MAKE_PARAMS)
        make -C build-$(WINARCH)-$(GUI)/translations/core update-po
        make -C build-$(WINARCH)-$(GUI)/bootstrap langstat_core.txt
 
@@ -83,7 +83,7 @@
        # configure
        cd build-$(WINARCH)-ruledit; ../../../configure 
FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" 
--with-project-definition=../../../bootstrap/snapshot.project --disable-client 
--disable-server --disable-fcmp --disable-freeciv-manual --enable-ruledit 
--with-qt5-includes=/$(ARCHDIR)/include --with-qt5-libs=/$(ARCHDIR)/lib 
$(EXTRA_CONFIG)
        # make
-       make -C build-$(WINARCH)-ruledit
+       make -C build-$(WINARCH)-ruledit $(MAKE_PARAMS)
        make -C build-$(WINARCH)-ruledit/translations/ruledit update-po
        make -C build-$(WINARCH)-ruledit/bootstrap langstat_ruledit.txt
 
@@ -97,7 +97,7 @@
 
 install-freeciv-common:
        # make install
-       make -C build-$(WINARCH)-$(GUI) DESTDIR=`pwd`/install-$(WINARCH)-$(GUI) 
install
+       make -C build-$(WINARCH)-$(GUI) DESTDIR=`pwd`/install-$(WINARCH)-$(GUI) 
$(MAKE_PARAMS) install
        # reorder directory layout
        mv install-$(WINARCH)-$(GUI)/$(INSTSUB)/bin/* install-$(WINARCH)-$(GUI)/
        mv install-$(WINARCH)-$(GUI)/$(INSTSUB)/etc install-$(WINARCH)-$(GUI)/
@@ -130,7 +130,7 @@
 
 install-ruledit: install-ruledit-dir
        # make install
-       make -C build-$(WINARCH)-ruledit 
DESTDIR=`pwd`/install-$(WINARCH)-ruledit/ install
+       make -C build-$(WINARCH)-ruledit 
DESTDIR=`pwd`/install-$(WINARCH)-ruledit/ $(MAKE_PARAMS) install
        # reorder directory layout
        mv install-$(WINARCH)-ruledit/$(INSTSUB)/bin/* 
install-$(WINARCH)-ruledit/
        mv install-$(WINARCH)-ruledit/$(INSTSUB)/share/freeciv 
install-$(WINARCH)-ruledit/data


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to