File: rules

package info (click to toggle)
odpic 5.6.3-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 4,316 kB
  • sloc: ansic: 42,419; sql: 2,153; makefile: 218; python: 123; sh: 15
file content (28 lines) | stat: -rwxr-xr-x 883 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_VERBOSE = 1

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -shared

%:
	dh $@

execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep:
ifeq (,$(filter nodoc,${DEB_BUILD_OPTIONS} ${DEB_BUILD_PROFILES}))
	python3 -m sphinx -N -bhtml $(CURDIR)/doc/src -d $(CURDIR)/debian/doctrees $(CURDIR)/build/html
endif

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr
	find $(CURDIR)/debian/tmp/usr/share/odpi/samples/ -type f -print0 \
	    | xargs -0 chmod -x

override_dh_installchangelogs:
	dh_installchangelogs doc/src/releasenotes.rst