File: rules

package info (click to toggle)
i2c-tools 4.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: perl: 3,235; ansic: 3,152; makefile: 52; sh: 19; python: 17
file content (19 lines) | stat: -rwxr-xr-x 564 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=smbus

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -O--buildsystem=makefile -- CFLAGS="$(CPPFLAGS) $(CFLAGS)"
	dh_auto_build -O--buildsystem=pybuild -- --dir=py-smbus

override_dh_auto_install:
	dh_auto_install -O--buildsystem=makefile -- PREFIX=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
	dh_auto_install -O--buildsystem=pybuild -- --dir=py-smbus

override_dh_auto_clean:
	dh_auto_clean -O--buildsystem=makefile
	dh_auto_clean -O--buildsystem=pybuild -- --dir=py-smbus