File: rules

package info (click to toggle)
gr-osmosdr 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,088 kB
  • sloc: cpp: 16,709; python: 11,368; ansic: 34; makefile: 11
file content (15 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3 --with numpy3

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"

override_dh_auto_install:
	rm -f debian/gr-osmosdr/usr/lib/python3/dist-packages/osmosdr/*pyc
	rm -f debian/gr-osmosdr/usr/lib/python3/dist-packages/osmosdr/*pyo
	dh_auto_install