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