File: rules

package info (click to toggle)
gr-air-modes 0.0.20210211-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,536 kB
  • sloc: python: 12,651; cpp: 496; ansic: 52; makefile: 15
file content (19 lines) | stat: -rwxr-xr-x 753 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
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH
DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
              | sed -rne 's,^Version: ([^-]+).*,\1,p')
GITREV=$(shell echo $(VER) | sed -rne 's,[0-9]+\.[0-9]+\.[0-9]+\.([0-f]+),\1,p')

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

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DCMAKE_BUILD_TYPE="Release" -DPYTHON_EXECUTABLE:STRING="/usr/bin/python3"

override_dh_install:
	rm -f debian/tmp/usr/lib/python3/dist-packages/*/*.pyc
	rm -f debian/tmp/usr/lib/python3/dist-packages/*/*.pyo
	rm debian/tmp/usr/bin/uhd_modes.py
	dh_install