3 # Uncomment this to turn on verbose mode.
6 # This has to be exported to make some magic below work.
9 export DH_PYCENTRAL=nomove
11 DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 rm -f build-stamp configure-stamp extract-stamp install-stamp
22 $(MAKE) maintainer-clean; \
32 -test -r /usr/share/misc/config.sub && \
33 cp -f /usr/share/misc/config.sub config.sub
34 -test -r /usr/share/misc/config.guess && \
35 cp -f /usr/share/misc/config.guess config.guess
37 configure: configure-stamp
40 [ -f ./configure ] || ./bootstrap
42 --build=$(DEB_BUILD_GNU_TYPE) \
44 --mandir=\$${prefix}/share/man \
45 --infodir=\$${prefix}/share/info \
48 --enable-all-components \
49 --disable-gr-audio-osx \
50 --disable-gr-audio-windows \
51 --disable-gcell --disable-gr-gcell \
52 --disable-gr-comedi --disable-usrp2-firmware
56 build-stamp: configure-stamp
62 extract: extract-stamp
63 extract-stamp: build-stamp debian/gen-install-files.sh
65 debian/gen-install-files.sh
68 install: install-stamp
69 install-stamp: extract-stamp debian/control
75 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
76 : # make python scripts starting with '#!' executable
77 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
78 if head -1 $$i | grep -q '^#!'; then \
80 echo "made executable: $$i"; \
84 : # Deposit rule to allow group 'usrp' access to USRP hardware
85 install -m 0644 -D debian/libusrp.udev \
86 debian/tmp/etc/udev/rules.d/40-usrp.rules
88 : # Deposit rule to allow group 'usrp' access to USRP2 hardware
89 install -m 0644 -D debian/libusrp2.limits \
90 debian/tmp/etc/security/limits.d/libusrp2.limits
92 : # Install custom grc.conf
93 install -m 0644 -D debian/grc.conf \
94 debian/tmp/etc/gnuradio/conf.d/grc.conf
96 : # Install custom prefs.py FIXME
97 install -m 0644 -D debian/prefs.py \
98 debian/tmp/usr/lib/python2.6/dist-packages/gnuradio/gr/prefs.py
100 dh_install --sourcedir=debian/tmp
105 # Must not depend on anything. This is to be called by
106 # binary-arch/binary-indep
107 # in another 'make' thread.
111 dh_installchangelogs ChangeLog
125 # Build architecture independant packages using the common target.
126 binary-indep: build install
127 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
129 # Build architecture dependant packages using the common target.
130 binary-arch: build install
131 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
133 binary: binary-arch binary-indep
134 .PHONY: build clean binary-indep binary-arch binary install configure