diff options
Diffstat (limited to 'dilos/core/tde-i18n/debian/rules')
-rwxr-xr-x | dilos/core/tde-i18n/debian/rules | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dilos/core/tde-i18n/debian/rules b/dilos/core/tde-i18n/debian/rules index 0c61a9499..6c4b01fce 100755 --- a/dilos/core/tde-i18n/debian/rules +++ b/dilos/core/tde-i18n/debian/rules @@ -25,6 +25,13 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) endif DEB_MAKE_PARALLEL ?= $(and $(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PARALLEL_JOBS)) +ifneq "$(wildcard /usr/bin/ninja)" "" +MAKE = ninja -v +DEB_MAKE_ENVVARS += DESTDIR=$(DEB_DESTDIR) +DEB_MAKE_INSTALL_TARGET = install +DEB_CMAKE_NORMAL_ARGS += -GNinja +endif + # The default gzip compressor has been changed in dpkg >= 1.17.0. deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \ sed -e "s|.*version ||" -e "s| .*||" | \ @@ -59,7 +66,7 @@ $(STAMP_BUILD): [ -e $(cur_lang_dir)/CMakeLists.txt ] || \ ln -s ../template/commonCMakeLists.txt $(cur_lang_dir)/CMakeLists.txt cd $(cur_lang_dir)/build && \ - cmake .. $(DEB_CMAKE_EXTRA_FLAGS) && \ + cmake .. $(DEB_CMAKE_NORMAL_ARGS) $(DEB_CMAKE_EXTRA_FLAGS) && \ $(MAKE) $(DEB_MAKE_PARALLEL) touch $@ @@ -72,7 +79,7 @@ install:: $(I18N_INSTALL) $(I18N_INSTALL): build cd $(cur_lang_dir)/build && \ - $(MAKE) install DESTDIR=$(CURDIR)/debian/$(cur_pkg) $(DEB_MAKE_PARALLEL) + DESTDIR=$(CURDIR)/debian/$(cur_pkg) $(MAKE) install $(DEB_MAKE_PARALLEL) clean: $(I18N_CLEAN) debian-clean |