#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all # from the top-level CMakeLists.txt export KDEV_PLUGIN_VERSION=62 # The clang-N used for the build by the unversioned clang current_clang_pkg = $(shell dpkg -S "$(shell realpath $(shell env PATH=$$(echo "$$PATH" | sed -r -e 's|/usr/lib/ccache/?:||') which clang))" | cut -d: -f1) # The upstream version of a package passed as parameter upstream_version_of_pkg = $(shell dpkg-query -f '$${Version}' -W $(1) | sed -e 's/-[^-]*$$//') # The clang dependency string clang_dependency = $(current_clang_pkg) (>= $(call upstream_version_of_pkg,$(current_clang_pkg))~) %: dh $@ override_dh_auto_configure: dh_auto_configure -Skf6 -- -DBUILD_TESTING=OFF override_dh_gencontrol: dh_gencontrol -- -V'kdevelop:clang=$(clang_dependency)' .PHONY: override_dh_auto_test