3 # Uncomment this to turn on verbose mode.
6 # This has to be exported to make some magic below work.
11 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 rm -f build-stamp configure-stamp extract-stamp install-stamp
26 $(MAKE) maintainer-clean; \
36 -test -r /usr/share/misc/config.sub && \
37 cp -f /usr/share/misc/config.sub config.sub
38 -test -r /usr/share/misc/config.guess && \
39 cp -f /usr/share/misc/config.guess config.guess
41 configure: configure-stamp
44 [ -f ./configure ] || ./bootstrap
45 CFLAGS="$(CFLAGS)" ./configure \
46 --prefix=/usr --mandir=\$${prefix}/share/man \
47 --infodir=\$${prefix}/share/info --enable-shared \
48 --enable-doxygen --enable-html-docs \
49 --sysconfdir=/etc --enable-all-components \
50 --disable-gr-audio-osx --disable-gr-audio-windows \
54 extract: extract-stamp
55 extract-stamp: configure-stamp debian/gen-install-files.sh
57 debian/gen-install-files.sh
61 build-stamp: extract-stamp
67 install: install-stamp
68 install-stamp: build-stamp
74 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
75 : # make python scripts starting with '#!' executable
76 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
77 if head -1 $$i | grep -q '^#!'; then \
79 echo "made executable: $$i"; \
83 : # Deposit rule to allow group 'usrp' access to USRP hardware
84 install -m 0755 -D debian/libusrp0c2a.udev \
85 debian/tmp/etc/udev/rules.d/40-usrp.rules
87 dh_install --sourcedir=debian/tmp
91 # Must not depend on anything. This is to be called by
92 # binary-arch/binary-indep
93 # in another 'make' thread.
97 dh_installchangelogs ChangeLog
111 # Build architecture independant packages using the common target.
112 binary-indep: build install
113 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
115 # Build architecture dependant packages using the common target.
116 binary-arch: build install
117 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
119 binary: binary-arch binary-indep
120 .PHONY: build clean binary-indep binary-arch binary install configure