summaryrefslogtreecommitdiffstats
path: root/debian/_base/applications/kbiff
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-05-08 18:53:26 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-08 18:53:26 +0200
commit36a50c12678c7504007c65da74addaf12e1c2d18 (patch)
tree1bc5a613b3d1bd812639cc9a9a55a9af7e9a75d1 /debian/_base/applications/kbiff
parent9b4a5ef69b2990e420239dbd867112982ac7d663 (diff)
downloadtde-packaging-36a50c12678c7504007c65da74addaf12e1c2d18.tar.gz
tde-packaging-36a50c12678c7504007c65da74addaf12e1c2d18.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>
Diffstat (limited to 'debian/_base/applications/kbiff')
-rw-r--r--debian/_base/applications/kbiff/debian/cdbs/debian-tde.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/_base/applications/kbiff/debian/cdbs/debian-tde.mk b/debian/_base/applications/kbiff/debian/cdbs/debian-tde.mk
index 5b4e8bfd7..f36e3527c 100644
--- a/debian/_base/applications/kbiff/debian/cdbs/debian-tde.mk
+++ b/debian/_base/applications/kbiff/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))