Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
3 export VERBOSE=1
4
5 CMAKE_FLAGS = \
6 -DCMAKE_BUILD_TYPE=Release \
7 -DCMAKE_SKIP_INSTALL_RPATH=ON \
8 -DROCM_SYMLINK_LIBS=OFF \
9 -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF \
10 -DWITH_TEST_MATRICIES=OFF
11
12 ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES)))
13 CMAKE_FLAGS += -DBUILD_CLIENTS_TESTS=ON
14 endif
15
16 %:
17 dh $@
18
19 override_dh_auto_configure-arch:
20 dh_auto_configure -- $(CMAKE_FLAGS)
21
22 override_dh_auto_test-arch:
23 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
24 set -e \
25 ; if [ -r /dev/kfd ] \
26 ; then obj-$(DEB_HOST_GNU_TYPE)/clients/staging/hipsparse-test \
27 ; else echo "W: /dev/kfd unreadable: no available AMD GPU." \
28 ; echo "W: tests skipped." \
29 ; fi
30 endif
31
32 override_dh_auto_configure-indep:
33 :
34
35 override_dh_auto_build-indep:
36 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
37 http_proxy='127.0.0.1:9' \
38 https_proxy='127.0.0.1:9' \
39 ROCM_DOCS_REMOTE_DETAILS=http://localhost,local \
40 latest_version= \
41 release_candidate= \
42 sphinx-build -v -b html docs html
43 endif
44
45 override_dh_auto_test-indep:
46 :
47
48 override_dh_auto_install-indep:
49 :