Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 include /usr/share/dpkg/default.mk
6
7 CLANG_VER := $(shell ls /usr/include/clang | grep '^[0-9]\+$$'| head -n 1)
8 CLANG_RESOURCE_DIR := /usr/include/clang/$(CLANG_VER)
9 CCLS_SUBSTVARS += -Vccls:Recommends=$(shell dpkg-query -S $(CLANG_RESOURCE_DIR) | sed -e 's/: .*//')
10
11 CMAKE_OPTS += -DCCLS_VERSION=$(DEB_VERSION)
12 CMAKE_OPTS += -DCLANG_RESOURCE_DIR=$(CLANG_RESOURCE_DIR)
13
14 %:
15 dh $@
16
17 override_dh_auto_configure:
18 dh_auto_configure -- $(CMAKE_OPTS)
19
20 override_dh_gencontrol:
21 dh_gencontrol -- $(CCLS_SUBSTVARS)
22
23 # upstream tests need building with clang-6, but we don't
24 override_dh_auto_test:
25 CCLS=obj-$(DEB_HOST_GNU_TYPE)/ccls debian/tests/lsp-test