File: rules

package info (click to toggle)
i2c-tools 4.3-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 716 kB
  • sloc: perl: 3,235; ansic: 3,185; makefile: 56; sh: 19; python: 17
file content (22 lines) | stat: -rwxr-xr-x 660 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
#!/usr/bin/make -f

PY3VERS = $(shell py3versions -v -r debian/control)

%:
	dh $@ --with python3

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CPPFLAGS) $(CFLAGS)"
	cd py-smbus && for v in $(PY3VERS) ; do \
		CFLAGS="$(CPPFLAGS) $(CFLAGS) -I../include" python$$v setup.py build ; \
	done

override_dh_auto_install:
	$(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/tmp prefix=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
	cd py-smbus && for v in $(PY3VERS) ; do \
		CFLAGS="$(CPPFLAGS) $(CFLAGS) -I../include" python$$v setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp ; \
	done

override_dh_auto_clean:
	rm -rf py-smbus/build
	dh_auto_clean