File: rules

package info (click to toggle)
gr-radar 0.0.0.20180308-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,876 kB
  • sloc: python: 11,439; cpp: 4,579; xml: 1,466; makefile: 17; ansic: 9
file content (22 lines) | stat: -rwxr-xr-x 780 bytes parent folder | download
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
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH

%:
	dh $@

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

override_dh_auto_test:
	mkdir debian/test
	mkdir debian/test/.gnuradio
	- if [ $(DEB_BUILD_ARCH) != hurd-i386 ]; then HOME=$(CURDIR)/debian/test dh_auto_test -- CTEST_TEST_TIMEOUT=60 ; fi
	rm -rf debian/test

override_dh_install-arch:
	rm -f debian/tmp/usr/lib/python2.7/dist-packages/radar/*.pyc
	rm -f debian/tmp/usr/lib/python2.7/dist-packages/radar/*.pyo
	dh_install --arch
	rm -f debian/gr-radar/usr/share/gnuradio/examples/radar/usrp/top_block.py
	chmod -x debian/gr-radar/usr/share/gnuradio/examples/radar/setup/setup_core