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 extract-stamp install-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
95 # FIXME: Ubuntu vs. Debian (below)
96 # install -m 0755 debian/usrp.hotplug \
97 # $(CURDIR)/debian/usrp/etc/hotplug.d/usb/
102 # Must not depend on anything. This is to be called by
103 # binary-arch/binary-indep
104 # in another 'make' thread.
108 dh_installchangelogs ChangeLog
122 # Build architecture independant packages using the common target.
123 binary-indep: build install
124 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
126 # Build architecture dependant packages using the common target.
127 binary-arch: build install
128 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
130 binary: binary-arch binary-indep
131 .PHONY: build clean binary-indep binary-arch binary install configure