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 chmod +x debian/gen-install-files.sh dtools/bin/extract_install_filenames
66 debian/gen-install-files.sh
69 install: install-stamp
70 install-stamp: extract-stamp debian/control
76 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
77 : # make python scripts starting with '#!' executable
78 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
79 if head -1 $$i | grep -q '^#!'; then \
81 echo "made executable: $$i"; \
85 : # Deposit rule to allow group 'usrp' access to USRP hardware
86 install -m 0644 -D debian/libusrp0.udev \
87 debian/tmp/etc/udev/rules.d/40-usrp.rules
89 : # Deposit rule to allow group 'usrp' access to USRP2 hardware
90 install -m 0644 -D debian/libusrp2-0.limits \
91 debian/tmp/etc/security/limits.d/libusrp2-0.limits
93 : # Install custom grc.conf
94 install -m 0644 -D debian/grc.conf \
95 debian/tmp/etc/gnuradio/conf.d/grc.conf
97 dh_install --sourcedir=debian/tmp
101 # Must not depend on anything. This is to be called by
102 # binary-arch/binary-indep
103 # in another 'make' thread.
107 dh_installchangelogs ChangeLog
121 # Build architecture independant packages using the common target.
122 binary-indep: build install
123 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
125 # Build architecture dependant packages using the common target.
126 binary-arch: build install
127 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
129 binary: binary-arch binary-indep
130 .PHONY: build clean binary-indep binary-arch binary install configure