3 # Uncomment this to turn on verbose mode.
6 # This has to be exported to make some magic below work.
12 rm -f build-stamp configure-stamp extract-stamp install-stamp
18 $(MAKE) maintainer-clean; \
28 -test -r /usr/share/misc/config.sub && \
29 cp -f /usr/share/misc/config.sub config.sub
30 -test -r /usr/share/misc/config.guess && \
31 cp -f /usr/share/misc/config.guess config.guess
33 configure: configure-stamp
36 [ -f ./configure ] || ./bootstrap
39 --mandir=\$${prefix}/share/man \
40 --infodir=\$${prefix}/share/info \
43 --enable-all-components \
45 --disable-gr-audio-osx \
46 --disable-gr-audio-windows \
47 --disable-gcell --disable-gr-gcell \
48 --disable-gr-comedi --disable-usrp2-firmware
52 build-stamp: configure-stamp
58 extract: extract-stamp
59 extract-stamp: build-stamp debian/gen-install-files.sh
61 debian/gen-install-files.sh
64 install: install-stamp
65 install-stamp: extract-stamp debian/control
71 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
72 : # make python scripts starting with '#!' executable
73 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
74 if head -1 $$i | grep -q '^#!'; then \
76 echo "made executable: $$i"; \
80 : # Deposit rule to allow group 'usrp' access to USRP hardware
81 install -m 0644 -D debian/libusrp.udev \
82 debian/tmp/etc/udev/rules.d/40-usrp.rules
84 : # Deposit rule to allow group 'usrp' access to USRP2 hardware
85 install -m 0644 -D debian/libusrp2.limits \
86 debian/tmp/etc/security/limits.d/libusrp2.limits
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
111 dh_builddeb --destdir=../debfiles
113 # Build architecture independant packages using the common target.
114 binary-indep: build install
115 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
117 # Build architecture dependant packages using the common target.
118 binary-arch: build install
119 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
121 binary: binary-arch binary-indep
122 .PHONY: build clean binary-indep binary-arch binary install configure