File: rules

package info (click to toggle)
rpi.gpio 0.7.1~a4-1.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 308 kB
  • sloc: ansic: 2,332; python: 714; makefile: 12
file content (21 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export PYBUILD_NAME=rpi.gpio

# Can only be tested on Raspberry Pi
export PYBUILD_DISABLE=test

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_CFLAGS_MAINT_APPEND += $(shell getconf LFS_CFLAGS) -fcommon
DEB_LDFLAGS_MAINT_APPEND += $(shell getconf LFS_LDFLAGS)
DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND

include /usr/share/dpkg/default.mk

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs --link-doc=rpi.gpio-common