Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 export DH_OPTIONS
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 INSTDIR = debian/tmp
7
8 %:
9 dh $@ -Bbuild -Scmake --with python3
10
11 ifeq "" "$(filter %-doc,$(shell dh_listpackages))"
12 WEBSITE = OFF
13 else
14 WEBSITE = ON
15 endif
16
17 override_dh_auto_configure:
18 dh_auto_configure -- \
19 -DBUILD_WEBSITE=$(WEBSITE) \
20 -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
21 -DPYTHON=ON
22
23 override_dh_auto_build-indep:
24 dh_auto_build -- website
25
26 override_dh_auto_install-indep:
27 dh_auto_install -- -C website
28
29 override_dh_auto_test:
30
31 override_dh_install-arch:
32 dh_numpy3 --package=python3-imath
33 dh_install
34
35 override_dh_install-indep:
36 rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/doctools.js
37 rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/jquery.js
38 rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/language_data.js
39 rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/searchtools.js
40 rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/underscore.js
41 rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/.buildinfo
42 rm -rf $(INSTDIR)/usr/share/doc/Imath/sphinx/.doctrees
43 dh_install