| 1 |
#!/usr/bin/make -f |
| 2 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 3 |
export DEB_HOST_MULTIARCH |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ |
| 7 |
|
| 8 |
override_dh_acc: |
| 9 |
- dh_acc |
| 10 |
- cat debian/libairspyhf-dev/usr/lib/x86_64-linux-gnu/dh-acc/libairspyhf-dev_*_report.html |
| 11 |
|
| 12 |
override_dh_auto_configure: |
| 13 |
dh_auto_configure $@ -- -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) |
| 14 |
|
| 15 |
override_dh_installudev: |
| 16 |
dh_installudev |
| 17 |
# This should be harmless when dh_installudev automatically installs to /usr/lib/udev/rules.d. |
| 18 |
set -e; if test -d debian/libairspyhf1/lib/udev/rules.d; then mv debian/libairspyhf1/lib/udev debian/libairspyhf1/usr/lib; fi |
| 19 |
set -e; if test -d debian/libairspyhf1/lib; then rmdir debian/libairspyhf1/lib; fi |