Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DH_VERBOSE = 1
5
6 # see ENVIRONMENT in dpkg-buildflags(1)
7 # package maintainers to append CFLAGS
8 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
9 # package maintainers to append LDFLAGS
10 export DEB_LDFLAGS_MAINT_APPEND = -shared
11
12 %:
13 dh $@
14
15 execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
16 execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
17 execute_after_dh_auto_build-indep:
18 ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
19 python3 -m sphinx -N -bhtml $(CURDIR)/doc/src -d $(CURDIR)/debian/doctrees $(CURDIR)/build/html
20 endif
21
22 override_dh_auto_install:
23 dh_auto_install -- PREFIX=/usr
24 find $(CURDIR)/debian/tmp/usr/share/odpi/samples/ -type f -print0 \
25 | xargs -0 chmod -x
26
27 override_dh_installchangelogs:
28 dh_installchangelogs doc/src/releasenotes.rst