3 # Sample debian/rules that uses debhelper.
5 # This file was originally written by Joey Hess and Craig Small.
6 # As a special exception, when this file is copied by dh-make into a
7 # dh-make output file, you may use that output file without restriction.
8 # This special exception was added by Craig Small in version 0.37 of dh-make.
10 # Modified to make a template file for a multi-binary package with separated
11 # build-arch and build-indep targets by Bill Allombert 2001
13 # Uncomment this to turn on verbose mode.
16 # This has to be exported to make some magic below work.
21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30 rm -f build-stamp configure-stamp
36 $(MAKE) maintainer-clean; \
46 -test -r /usr/share/misc/config.sub && \
47 cp -f /usr/share/misc/config.sub config.sub
48 -test -r /usr/share/misc/config.guess && \
49 cp -f /usr/share/misc/config.guess config.guess
51 configure: configure-stamp
54 [ -f ./configure ] || ./bootstrap
55 CFLAGS="$(CFLAGS)" ./configure \
56 --prefix=/usr --mandir=\$${prefix}/share/man \
57 --infodir=\$${prefix}/share/info --enable-shared \
58 --enable-doxygen --enable-html-docs \
59 --sysconfdir=/etc --enable-all-components \
60 --disable-gr-audio-osx --disable-gr-audio-windows \
64 extract: extract-stamp
65 extract-stamp: configure-stamp debian/gen-install-files.sh
67 debian/gen-install-files.sh
71 build-stamp: extract-stamp
77 install: install-stamp
78 install-stamp: build-stamp
84 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
85 : # make python scripts starting with '#!' executable
86 for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
87 if head -1 $$i | grep -q '^#!'; then \
89 echo "made executable: $$i"; \
93 dh_install --sourcedir=debian/tmp --list-missing
95 # install -m 0755 debian/usrp.hotplug \
96 # $(CURDIR)/debian/usrp/etc/hotplug.d/usb/
98 # cp -r gnuradio-examples/python/* \
99 # debian/gnuradio-examples/usr/share/gnuradio/
100 # find debian/gnuradio-examples -type f -name Makefile\* -exec rm {} \;
101 # find debian/gnuradio-examples -type d -name CVS -exec rm {} \;
102 # find debian/gnuradio-examples -name \*.py -exec chmod +x {} \;
104 # mv debian/gnuradio/usr/bin/microtune.py \
105 # debian/gnuradio/usr/bin/microtune
107 # mv debian/usrp/usr/bin/usrp_ra_receiver.py \
108 # debian/usrp/usr/bin/usrp_ra_receiver
109 # mv debian/usrp/usr/bin/usrp_psr_receiver.py \
110 # debian/usrp/usr/bin/usrp_psr_receiver
114 # Must not depend on anything. This is to be called by
115 # binary-arch/binary-indep
116 # in another 'make' thread.
120 dh_installchangelogs ChangeLog
125 # dh_installlogrotate
138 # dh_movefiles --sourcedir=debian/gnuradio
148 # Build architecture independant packages using the common target.
149 binary-indep: build install
150 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
152 # Build architecture dependant packages using the common target.
153 binary-arch: build install
154 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
156 binary: binary-arch binary-indep
157 .PHONY: build clean binary-indep binary-arch binary install configure