Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 %:
4 dh $@
5
6 include /usr/share/dpkg/architecture.mk
7
8 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
9 DOXYGEN = --enable-doxygen
10 endif
11
12 ifeq (,$(filter pkg.hwloc.minimum,$(DEB_BUILD_PROFILES)))
13 PLUGINS = --enable-plugins
14 endif
15
16 override_dh_clean:
17 dh_clean
18 -rm -fr doc/doxygen-doc
19
20 override_dh_auto_configure:
21 dh_auto_configure -- --enable-static $(PLUGINS) $(DOXYGEN)
22
23 override_dh_auto_install:
24 dh_auto_install --destdir=debian/tmp
25
26 mkdir -p $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/hwloc/autogen
27 mv $(CURDIR)/debian/tmp/usr/include/hwloc/autogen/config.h $(CURDIR)/debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/hwloc/autogen/
28
29 override_dh_makeshlibs:
30 dh_makeshlibs -V
31
32 NOTEST = HWLOC_TEST_DONTCHECK_PROC_CPULOCATION=1
33
34 # Keep this while hppa's buildd is using qemu-user and
35 # https://gitlab.com/qemu-project/qemu/-/issues/2004 happens there
36 ifeq ($(DEB_HOST_ARCH_CPU),hppa)
37 NOTEST += HWLOC_TEST_GATHER_TOPOLOGY=0
38 endif
39
40 override_dh_auto_test:
41 $(NOTEST) dh_auto_test -- -k || \
42 ( cat $$(find . -name \*.log) ; false )