summaryrefslogtreecommitdiffstats
path: root/dilos/libraries
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-05-09 19:34:05 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-09 19:34:05 +0200
commite5d408d88409ad03b97fb4e7edda06240c1cb40b (patch)
treebf77e679e5c09f4ffc8f65127fc241e495c35017 /dilos/libraries
parente651e47a9f147b023567fe8a98fd638e481f9872 (diff)
downloadtde-packaging-e5d408d88409ad03b97fb4e7edda06240c1cb40b.tar.gz
tde-packaging-e5d408d88409ad03b97fb4e7edda06240c1cb40b.zip
DEB: Add support to build using ninja-build (CMake only) to common cdbs rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 36a50c12678c7504007c65da74addaf12e1c2d18)
Diffstat (limited to 'dilos/libraries')
-rw-r--r--dilos/libraries/libtdeldap/debian/cdbs/debian-tde.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/dilos/libraries/libtdeldap/debian/cdbs/debian-tde.mk b/dilos/libraries/libtdeldap/debian/cdbs/debian-tde.mk
index 4dd4698a4..e2b1dc666 100644
--- a/dilos/libraries/libtdeldap/debian/cdbs/debian-tde.mk
+++ b/dilos/libraries/libtdeldap/debian/cdbs/debian-tde.mk
@@ -57,6 +57,15 @@ ifndef _cdbs_class_cmake
include $(_cdbs_class_path)/autotools.mk$(_cdbs_makefile_suffix)
endif
+ifdef _cdbs_class_cmake
+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
+endif
+
ifndef _cdbs_rules_patchsys_quilt
DEB_PATCHDIRS := debian/patches/common debian/patches
endif
@@ -214,7 +223,7 @@ debian/stamp-kde-apidox:
common-install-indep:: common-install-kde-apidox
common-install-kde-apidox::
- $(if $(DEB_KDE_APIDOX),+$(DEB_MAKE_INVOKE) install-apidox DESTDIR=$(DEB_DESTDIR))
+ $(if $(DEB_KDE_APIDOX),+DESTDIR=$(DEB_DESTDIR) $(DEB_MAKE_INVOKE) install-apidox)
cleanbuilddir::
-$(if $(call cdbs_streq,$(DEB_BUILDDIR),$(DEB_SRCDIR)),,rm -rf $(DEB_BUILDDIR))