Add pmt type that wraps a gruel::msg_accepter.
[debian/gnuradio] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 export DH_VERBOSE=1
5
6 # This has to be exported to make some magic below work.
7 export DH_OPTIONS
8
9 export DH_PYCENTRAL=nomove
10
11 clean:
12         dh_testdir
13         dh_testroot
14         rm -f build-stamp configure-stamp extract-stamp install-stamp
15
16         if [ -f Makefile ]; \
17         then\
18                 if [ -d .svn ]; \
19                 then \
20                         $(MAKE) maintainer-clean; \
21                 else \
22                         $(MAKE) distclean; \
23                 fi; \
24         fi
25
26         dh_clean
27
28 update:
29         dh_testdir
30         -test -r /usr/share/misc/config.sub && \
31                 cp -f /usr/share/misc/config.sub config.sub
32         -test -r /usr/share/misc/config.guess && \
33                 cp -f /usr/share/misc/config.guess config.guess
34
35 configure: configure-stamp
36 configure-stamp:
37         dh_testdir
38         [ -f ./configure ] || ./bootstrap
39         ./configure \
40                 --prefix=/usr \
41                 --mandir=\$${prefix}/share/man \
42                 --infodir=\$${prefix}/share/info \
43                 --enable-shared \
44                 --sysconfdir=/etc \
45                 --enable-all-components \
46                 --disable-gr-audio-osx \
47                 --disable-gr-audio-windows \
48                 --disable-gcell --disable-gr-gcell \
49                 --disable-gr-comedi --disable-usrp2-firmware
50         touch configure-stamp
51
52 build: build-stamp
53 build-stamp: configure-stamp
54
55         $(MAKE)
56         $(MAKE) check
57         touch $@
58
59 extract: extract-stamp
60 extract-stamp: build-stamp debian/bin/gen-install-files.sh
61         dh_testdir
62         debian/bin/gen-install-files.sh 
63         touch $@
64
65 install: install-stamp
66 install-stamp: extract-stamp debian/control
67         dh_testdir
68         dh_testroot
69         dh_clean -k
70         dh_installdirs
71
72         $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
73         : # make python scripts starting with '#!' executable
74         for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
75           if head -1 $$i | grep -q '^#!'; then \
76             chmod 755 $$i; \
77             echo "made executable: $$i"; \
78           fi; \
79         done
80
81         : # Deposit rule to allow group 'usrp' access to USRP hardware
82         install -m 0644 -D debian/custom/libusrp.udev \
83                 debian/tmp/etc/udev/rules.d/40-usrp.rules
84
85         : # Deposit rule to allow group 'usrp' access to USRP2 hardware
86         install -m 0644 -D debian/custom/libusrp2.limits \
87                 debian/tmp/etc/security/limits.d/libusrp2.limits
88
89         : # Install custom grc.conf
90         install -m 0644 -D debian/custom/grc.conf \
91                 debian/tmp/etc/gnuradio/conf.d/grc.conf
92
93         dh_install --sourcedir=debian/tmp
94         touch $@
95
96
97
98 # Must not depend on anything. This is to be called by
99 # binary-arch/binary-indep
100 # in another 'make' thread.
101 binary-common:
102         dh_testdir
103         dh_testroot
104         dh_installchangelogs ChangeLog
105         dh_installdocs
106         dh_pycentral
107         dh_link
108         dh_strip
109         dh_compress 
110         dh_fixperms
111         dh_makeshlibs
112         dh_installdeb
113         dh_shlibdeps
114         dh_gencontrol
115         dh_md5sums
116         dh_builddeb
117
118 # Build architecture independant packages using the common target.
119 binary-indep: build install
120         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
121
122 # Build architecture dependant packages using the common target.
123 binary-arch: build install
124         $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
125
126 binary: binary-arch binary-indep
127 .PHONY: build clean binary-indep binary-arch binary install configure