Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 export LC_ALL=en_US.UTF-8
8
9 # Hardening flags.
10 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
11 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
12 export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic
13
14 %:
15 dh $@
16
17 override_dh_auto_configure:
18 dh_auto_configure -- -DUSE_SYSTEM_PUGIXML=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
19
20 override_dh_auto_build-indep:
21 dh_auto_build -- apidoc
22
23 override_dh_auto_test-indep:
24 @echo 'I: There are no tests to run for arch-all builds.'
25
26 override_dh_install-arch:
27 find debian/tmp -name ismrmrd.xsd -delete
28 dh_install -a
29 d-shlibmove --commit \
30 --multiarch \
31 --devunversioned \
32 --exclude-la \
33 --movedev debian/tmp/usr/lib/*/cmake usr/lib/$(DEB_HOST_MULTIARCH) \
34 --movedev debian/tmp/usr/include usr \
35 debian/tmp/usr/lib/*/*.so
36 find debian -name "lib*.la" -delete
37
38 override_dh_auto_install-indep:
39 echo "No need to do install for architecture indep packages"
40
41 override_dh_auto_installdocs-indep:
42 dh_installdocs --indep
43 dh_doxygen --indep
44
45 override_dh_compress:
46 dh_compress --exclude=examples
47
48 override_dh_missing-arch:
49 find debian/tmp -type f \( -name '*.m' -o -name 'ismrmrd_c_example' \) -delete
50 dh_missing -a