diff options
author | Slávek Banko <[email protected]> | 2016-02-28 02:18:58 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-02-28 02:19:30 +0100 |
commit | ba33c1b2115d01eb6e3f4d087d4cd2bb92ff7129 (patch) | |
tree | 7e2115798da867ae50907f816739c0aaf90db6f7 /ubuntu/maverick/tde-i18n/debian | |
parent | 47a2965ada58d04968036d87d39d7056c827e3ab (diff) | |
download | tde-packaging-ba33c1b2115d01eb6e3f4d087d4cd2bb92ff7129.tar.gz tde-packaging-ba33c1b2115d01eb6e3f4d087d4cd2bb92ff7129.zip |
Allow parallel make for i18n packages on Debian and Ubuntu
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 639c18e5e10b68f5dea1b68665ba08b2e25f08e5)
Diffstat (limited to 'ubuntu/maverick/tde-i18n/debian')
-rwxr-xr-x | ubuntu/maverick/tde-i18n/debian/rules | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ubuntu/maverick/tde-i18n/debian/rules b/ubuntu/maverick/tde-i18n/debian/rules index fcbacb90a..c5ae84be2 100755 --- a/ubuntu/maverick/tde-i18n/debian/rules +++ b/ubuntu/maverick/tde-i18n/debian/rules @@ -22,6 +22,11 @@ DEB_CONFIGURE_MANDIR := /opt/trinity/share/man DEB_CONFIGURE_PREFIX := /opt/trinity DEB_CONFIGURE_INFODIR := /opt/trinity/share/info +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + DEB_PARALLEL_JOBS ?= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif +DEB_MAKE_PARALLEL ?= $(and $(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PARALLEL_JOBS)) + configkde=\ --disable-rpath \ --prefix=$(DEB_CONFIGURE_PREFIX) \ @@ -57,13 +62,13 @@ $(STAMP_BUILD): $(MAKE) -f ../admin/Makefile.common && \ cd build && \ ../configure --build=build $(configkde) && \ - $(MAKE); \ + $(MAKE) $(DEB_MAKE_PARALLEL); \ fi if [ -e $(cur_lang_dir)/CMakeLists.txt ]; then \ ([ -e $(cur_lang_dir)/cmake ] || ln -s ../cmake $(cur_lang_dir)) && \ cd $(cur_lang_dir)/build && \ cmake .. $(DEB_CMAKE_EXTRA_FLAGS) && \ - $(MAKE); \ + $(MAKE) $(DEB_MAKE_PARALLEL); \ fi touch $@ @@ -87,7 +92,7 @@ install:: $(I18N_INSTALL) cp -aR debian/$(I18N_DEST_PREFIX)-zh_TW-trinity/* debian/$(I18N_DEST_PREFIX)-zhtw-trinity/ $(I18N_INSTALL): - cd $(cur_lang_dir)/build && $(MAKE) install DESTDIR=$(CURDIR)/debian/$(cur_pkg)-trinity + cd $(cur_lang_dir)/build && $(MAKE) install DESTDIR=$(CURDIR)/debian/$(cur_pkg)-trinity $(DEB_MAKE_PARALLEL) clean: $(I18N_CLEAN) debian-clean |