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 \
51 --disable-gr-qtgui --disable-gcell --disable-gr-gcell \
52 --disable-gr-comedi --disable-usrp2-firmware
55 extract: extract-stamp
56 extract-stamp: configure-stamp debian/gen-install-files.sh
58 debian/gen-install-files.sh
62 build-stamp: extract-stamp
68 install: install-stamp
69 install-stamp: build-stamp
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 dh_install --sourcedir=debian/tmp
92 # Must not depend on anything. This is to be called by
93 # binary-arch/binary-indep
94 # in another 'make' thread.
98 dh_installchangelogs ChangeLog
112 # Build architecture independant packages using the common target.
113 binary-indep: build install
114 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
116 # Build architecture dependant packages using the common target.
117 binary-arch: build install
118 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
120 binary: binary-arch binary-indep
121 .PHONY: build clean binary-indep binary-arch binary install configure