File: rules

package info (click to toggle)
gr-osmosdr 0.2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,184 kB
  • sloc: cpp: 16,440; python: 11,368; xml: 42; ansic: 34; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 641 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
#!/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)" \
	-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/doxygen/doxyxml/generated/__pycache__
	rm -rf docs/doxygen/doxyxml/__pycache__