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
14 rm -f build-stamp configure-stamp extract-stamp install-stamp
20 $(MAKE) maintainer-clean; \
30 -test -r /usr/share/misc/config.sub && \
31 cp -f /usr/share/misc/config.sub config.sub
32 -test -r /usr/share/misc/config.guess && \
33 cp -f /usr/share/misc/config.guess config.guess
35 configure: configure-stamp
38 [ -f ./configure ] || ./bootstrap
41 --mandir=\$${prefix}/share/man \
42 --infodir=\$${prefix}/share/info \
45 --enable-all-components \
46 --disable-gr-audio-osx \
47 --disable-gr-audio-windows \
48 --disable-gcell --disable-gr-gcell \
49 --disable-gr-comedi --disable-usrp2-firmware
53 build-stamp: configure-stamp
59 extract: extract-stamp
60 extract-stamp: build-stamp debian/bin/gen-install-files.sh
62 debian/bin/gen-install-files.sh
65 install: install-stamp
66 install-stamp: extract-stamp debian/control
72 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
73 : # make python scripts starting with '#!' executable
74 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
75 if head -1 $$i | grep -q '^#!'; then \
77 echo "made executable: $$i"; \
81 : # Deposit rule to allow group 'usrp' access to USRP hardware
82 install -m 0644 -D debian/custom/libusrp.udev \
83 debian/tmp/etc/udev/rules.d/40-usrp.rules
85 : # Deposit rule to allow group 'usrp' access to USRP2 hardware
86 install -m 0644 -D debian/custom/libusrp2.limits \
87 debian/tmp/etc/security/limits.d/libusrp2.limits
89 : # Install custom grc.conf
90 install -m 0644 -D debian/custom/grc.conf \
91 debian/tmp/etc/gnuradio/conf.d/grc.conf
93 dh_install --sourcedir=debian/tmp
98 # Must not depend on anything. This is to be called by
99 # binary-arch/binary-indep
100 # in another 'make' thread.
104 dh_installchangelogs ChangeLog
118 # Build architecture independant packages using the common target.
119 binary-indep: build install
120 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
122 # Build architecture dependant packages using the common target.
123 binary-arch: build install
124 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
126 binary: binary-arch binary-indep
127 .PHONY: build clean binary-indep binary-arch binary install configure