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
18 # Remove (possibly stale) pre-built Qt-generated moc files; they will
19 # be rebuilt using the current Qt moc. Perhaps this should actually be
20 # part of 'make distclean' and these files not be distributed:
21 rm -f ./gr-qtgui/src/lib/*_moc.cc
27 $(MAKE) maintainer-clean; \
37 -test -r /usr/share/misc/config.sub && \
38 cp -f /usr/share/misc/config.sub config.sub
39 -test -r /usr/share/misc/config.guess && \
40 cp -f /usr/share/misc/config.guess config.guess
42 configure: configure-stamp
45 [ -f ./configure ] || ./bootstrap
47 --build=$(DEB_BUILD_GNU_TYPE) \
49 --mandir=\$${prefix}/share/man \
50 --infodir=\$${prefix}/share/info \
53 --enable-all-components \
54 --disable-gr-audio-osx \
55 --disable-gr-audio-windows \
56 --disable-gcell --disable-gr-gcell \
57 --disable-gr-comedi --disable-usrp2-firmware
61 build-stamp: configure-stamp
67 extract: extract-stamp
68 extract-stamp: build-stamp debian/gen-install-files.sh
70 chmod +x debian/gen-install-files.sh dtools/bin/extract_install_filenames
71 debian/gen-install-files.sh
74 install: install-stamp
75 install-stamp: extract-stamp debian/control
81 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
82 : # make python scripts starting with '#!' executable
83 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
84 if head -1 $$i | grep -q '^#!'; then \
86 echo "made executable: $$i"; \
90 : # Deposit rule to allow group 'usrp' access to USRP hardware
91 install -m 0644 -D debian/libusrp0.udev \
92 debian/tmp/etc/udev/rules.d/40-usrp.rules
94 : # Deposit rule to allow group 'usrp' access to USRP2 hardware
95 install -m 0644 -D debian/libusrp2-0.limits \
96 debian/tmp/etc/security/limits.d/libusrp2-0.limits
98 : # Install custom grc.conf
99 install -m 0644 -D debian/grc.conf \
100 debian/tmp/etc/gnuradio/conf.d/grc.conf
102 dh_install --sourcedir=debian/tmp
107 # Must not depend on anything. This is to be called by
108 # binary-arch/binary-indep
109 # in another 'make' thread.
113 dh_installchangelogs ChangeLog
127 # Build architecture independant packages using the common target.
128 binary-indep: build install
129 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
131 # Build architecture dependant packages using the common target.
132 binary-arch: build install
133 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
135 binary: binary-arch binary-indep
136 .PHONY: build clean binary-indep binary-arch binary install configure