Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 soversion = 8
5 libversion = $(soversion).3
6
7 # architecture dependent variables
8 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
9 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
10 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
11 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
13
14 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
15 CROSS=$(DEB_HOST_GNU_TYPE)-gcc
16 else
17 CROSS=gcc
18 endif
19
20 ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES)))
21 buildudeb = yes
22 endif
23
24 ifneq (,$(findstring /$(DEB_HOST_ARCH)/,/i386/powerpc/sparc/s390/))
25 build64 = yes
26 CC64 = $(CROSS) -m64
27 lib64dir = usr/lib64
28 gencontrol_flags = -- \
29 '-Vdevxx:Depends=libc6-dev-$(ARCH64)'
30 ifeq ($(DEB_HOST_ARCH),i386)
31 ARCH64 = amd64
32 HOST64 = x86_64-linux-gnu
33 endif
34 ifeq ($(DEB_HOST_ARCH),powerpc)
35 ARCH64 = ppc64
36 HOST64 = ppc64-linux-gnu
37 endif
38 ifeq ($(DEB_HOST_ARCH),sparc)
39 ARCH64 = sparc64
40 HOST64 = sparc64-linux-gnu
41 endif
42 ifeq ($(DEB_HOST_ARCH),s390)
43 ARCH64 = s390x
44 HOST64 = s390x-linux-gnu
45 endif
46 endif
47
48 ifneq (,$(findstring /$(DEB_HOST_ARCH)/,/amd64/ppc64/))
49 build32 = yes
50 CC32 = $(CROSS) -m32
51 lib32dir = usr/lib32
52 gencontrol_flags = -- \
53 '-Vdevxx:Depends=libc6-dev-$(ARCH32)'
54 ifeq ($(DEB_HOST_ARCH),amd64)
55 ARCH32 = i386
56 HOST32 = i486-linux-gnu
57 endif
58 ifeq ($(DEB_HOST_ARCH),ppc64)
59 ARCH32 = powerpc
60 HOST32 = powerpc-linux-gnu
61 endif
62 endif
63
64 unexport CPPFLAGS CFLAGS LDFLAGS
65
66 ifneq ($(filter nobiarch,$(DEB_BUILD_PROFILES)),)
67 build32 =
68 build64 =
69 endif
70
71 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
72 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
73 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
74 CFLAGS := $(CFLAGS) -I/usr/include/ncursesw
75
76 CC = $(CROSS)
77
78 SHELL = bash
79
80 p_rl = libreadline$(soversion)t64
81 p_rlu = libreadline$(soversion)-udeb
82 p_rl32 = lib32readline$(soversion)
83 p_rl64 = lib64readline$(soversion)
84 p_comm = readline-common
85 p_commu = readline-common-udeb
86 p_rld = libreadline-dev
87 p_rld32 = lib32readline-dev
88 p_rld64 = lib64readline-dev
89 p_doc = readline-doc
90 p_rlfe = rlfe
91
92 d = debian/tmp
93 du = debian/tmp-udeb
94 d32 = debian/tmp32
95 d64 = debian/tmp64
96 d_rl = debian/$(p_rl)
97 d_rlu = debian/$(p_rlu)
98 d_rl32 = debian/$(p_rl32)
99 d_rl64 = debian/$(p_rl64)
100 d_comm = debian/$(p_comm)
101 d_commu = debian/$(p_commu)
102 d_rld = debian/$(p_rld)
103 d_rld32 = debian/$(p_rld32)
104 d_rld64 = debian/$(p_rld64)
105 d_doc = debian/$(p_doc)
106 d_rlfe = debian/$(p_rlfe)
107
108 srcdir = $(CURDIR)
109 builddir = $(CURDIR)/build
110 builddiru = $(CURDIR)/buildudeb
111 builddir32 = $(CURDIR)/build32
112 builddir64 = $(CURDIR)/build64
113
114 default: build
115
116 configure: configure-stamp
117 configure-stamp:
118 dh_testdir
119 cp -p /usr/share/misc/config.* ./support/
120 rm -rf $(builddir)
121 mkdir $(builddir)
122 find . -type d | xargs chmod g-s
123 chmod +x configure
124 cd $(builddir) && \
125 CC=$(CC) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" $(srcdir)/configure \
126 --prefix=/usr\
127 --host=$(DEB_HOST_GNU_TYPE) \
128 --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
129
130 ifneq ($(buildudeb),)
131 rm -rf $(builddiru)
132 mkdir $(builddiru)
133 cd $(builddiru) && \
134 CFLAGS="$(CFLAGS) -Os" CPPFLAGS="$(CPPFLAGS)" $(srcdir)/configure \
135 --prefix=/usr\
136 --host=$(DEB_HOST_GNU_TYPE) \
137 --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
138 endif
139
140 ifneq ($(build32),)
141 rm -rf $(builddir32)
142 mkdir $(builddir32)
143 cd $(builddir32) && \
144 CC="$(CC32)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" $(srcdir)/configure \
145 --host=$(HOST32) --prefix=/usr
146 endif
147
148 ifneq ($(build64),)
149 rm -rf $(builddir64)
150 mkdir $(builddir64)
151 cd $(builddir64) && \
152 CC="$(CC64)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" $(srcdir)/configure \
153 --host=$(HOST64) --prefix=/usr
154 endif
155
156 touch configure-stamp
157
158 debian/%:debian/%.in
159 sed 's/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g' $< > $@
160
161 build: build-stamp $(if $(filter cross,$(DEB_BUILD_PROFILES)),,build-rlfe-stamp)
162 build-arch: build
163 build-indep: build
164
165 build-stamp: configure-stamp
166 dh_testdir
167 $(MAKE) -C $(builddir) \
168 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
169 SHOBJ_CFLAGS="-fPIC -D_REENTRANT" \
170 SHOBJ_LDFLAGS='$(LDFLAGS) -shared' \
171 SHLIB_LIBS="-ltinfo"
172
173 ifneq ($(buildudeb),)
174 $(MAKE) -C $(builddiru) \
175 CFLAGS="$(CFLAGS) -Os" CPPFLAGS="$(CPPFLAGS)" \
176 SHOBJ_CFLAGS="-fPIC -D_REENTRANT" \
177 SHOBJ_LDFLAGS='$(LDFLAGS) -shared' \
178 SHLIB_LIBS="-ltinfo"
179 endif
180
181 ifneq ($(build32),)
182 $(MAKE) -C $(builddir32) \
183 CC="$(CC32)" \
184 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
185 SHOBJ_CFLAGS="-fPIC -D_REENTRANT" \
186 SHOBJ_LDFLAGS='$(LDFLAGS) -shared' \
187 SHLIB_LIBS="-ltinfo"
188 SHLIB_XLDFLAGS='-Wl,-soname,`echo $$@ | sed s/\\..$$$$//`'
189 endif
190
191 ifneq ($(build64),)
192 $(MAKE) -C $(builddir64) \
193 CC="$(CC64)" \
194 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
195 SHOBJ_CFLAGS="-fPIC -D_REENTRANT" \
196 SHOBJ_LDFLAGS='$(LDFLAGS) -shared' \
197 SHLIB_LIBS="-ltinfo"
198 SHLIB_XLDFLAGS='-Wl,-soname,`echo $$@ | sed s/\\..$$$$//`'
199 endif
200 $(MAKE) -C $(builddir)/doc info
201
202 touch build-stamp
203
204 build-rlfe-stamp: configure-stamp
205 dh_testdir
206 ln -sf libhistory.so.$(libversion) \
207 $(builddir)/shlib/libhistory.so.$(soversion)
208 ln -sf libhistory.so.$(soversion) $(builddir)/shlib/libhistory.so
209 ln -sf libreadline.so.$(libversion) \
210 $(builddir)/shlib/libreadline.so.$(soversion)
211 ln -sf libreadline.so.$(soversion) $(builddir)/shlib/libreadline.so
212 rm -rf $(builddir)/examples/rlfe
213 cp -a examples/rlfe $(builddir)/examples/
214 ln -sf ../../.. $(builddir)/examples/rlfe/readline
215 chmod +x $(builddir)/examples/rlfe/configure
216 cd $(builddir)/examples/rlfe \
217 && ./configure --prefix=/usr --host=$(DEB_HOST_GNU_TYPE) \
218 CFLAGS="$(CFLAGS) -Wno-implicit-int -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -D_GNU_SOURCE" CPPFLAGS="$(CPPFLAGS)"
219 $(MAKE) -C $(builddir)/examples/rlfe \
220 CFLAGS="$(CFLAGS) -Wno-implicit-int -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -D_GNU_SOURCE" CPPFLAGS="$(CPPFLAGS)" \
221 LDFLAGS="$(LDFLAGS) -g -L$(builddir)/shlib" \
222 LIBS="-lreadline -ltinfo -lutil" rlfe
223 touch build-rlfe-stamp
224
225 clean:
226 dh_testdir
227 dh_testroot
228 rm -f configure*-stamp build*-stamp install-stamp
229 rm -rf autom4te.cache
230 rm -rf $(builddir) $(builddir32) $(builddir64) $(builddiru)
231 rm -rf debian/tmp*
232 rm -f doc/*.dvi
233 rm -f debian/shlibs.local
234 find . -type d | xargs chmod g-s
235 rm -f support/config.guess support/config.sub
236 rm -f debian/libreadline8t64.preinst debian/libreadline8t64.postrm
237 dh_clean
238
239 install: install-stamp
240 install-stamp:
241 dh_testdir
242 dh_testroot
243 dh_prep
244 rm -rf $(d)
245 mkdir -p $(d)/usr/bin
246 mkdir -p $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
247 $(MAKE) -C $(builddir) install \
248 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -D_REENTRANT" \
249 SHOBJ_LDFLAGS='-shared $(LDFLAGS)' \
250 SHLIB_XLDFLAGS='-Wl,-soname,`echo $$@ | sed s/\\..$$$$//`' \
251 SHLIB_LIBS=-ltinfo \
252 DESTDIR=$(CURDIR)/$(d) \
253 mandir=/usr/share/man \
254 infodir=/usr/share/info
255
256 : # move $(p_rl)
257 dh_installdirs -p$(p_rl) \
258 usr/lib/$(DEB_HOST_MULTIARCH) \
259 usr/share/doc
260 cp -a $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/lib{history,readline}.so.* $(d_rl)/usr/lib/$(DEB_HOST_MULTIARCH)/
261
262 : # move $(p_comm)
263 dh_installdirs -p$(p_comm) \
264 etc \
265 usr/share/readline \
266 usr/share/info \
267 usr/share/doc
268 mv $(d)/usr/share/man $(d_comm)/usr/share/.
269 mv $(d_comm)/usr/share/man/man3/history.3 \
270 $(d_comm)/usr/share/man/man3/history.3readline
271 mv $(d_comm)/usr/share/man/man3/readline.3 \
272 $(d_comm)/usr/share/man/man3/readline.3readline
273 mv $(d)/usr/share/info/rluserman.info $(d_comm)/usr/share/info/.
274 install -m 644 debian/inputrc $(d_comm)/usr/share/readline/
275
276 : # move $(p_rld)
277 dh_installdirs -p$(p_rld) \
278 usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
279 usr/share/doc \
280 usr/share/info
281 ln -s libhistory.so.$(soversion) \
282 $(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/libhistory.so
283 ln -s libreadline.so.$(soversion) \
284 $(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/libreadline.so
285 mv $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/lib{history,readline}.a \
286 $(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/.
287 mv $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/readline.pc \
288 $(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/.
289 mv $(d)/usr/include $(d_rld)/usr/.
290
291 : # remove HAVE_CONFIG_H from installed headers
292 awk '/^#if defined \(HAVE_CONFIG_H\)/, /^#endif/ \
293 {if ($$0 == "#else") print "#include <string.h>"; next} {print}' \
294 $(d_rld)/usr/include/readline/chardefs.h \
295 > $(d_rld)/usr/include/readline/chardefs.h.new
296 if diff -u $(d_rld)/usr/include/readline/chardefs.h \
297 $(d_rld)/usr/include/readline/chardefs.h.new; \
298 then \
299 rm -f $(d_rld)/usr/include/readline/chardefs.h.new; \
300 else \
301 mv -f $(d_rld)/usr/include/readline/chardefs.h.new \
302 $(d_rld)/usr/include/readline/chardefs.h; \
303 fi
304
305 ifeq (,$(filter cross,$(DEB_BUILD_PROFILES)))
306 : # install $(p_rlfe)
307 dh_installdirs -p$(p_rlfe) \
308 usr/bin usr/share/man/man1 \
309 usr/share/doc/$(p_rlfe)
310 cp -p $(builddir)/examples/rlfe/rlfe $(d_rlfe)/usr/bin/.
311 cp -p debian/rlfe.1 $(d_rlfe)/usr/share/man/man1/.
312 endif
313
314 ifneq ($(buildudeb),)
315 rm -rf $(du)
316 mkdir -p $(du)/usr/bin
317 mkdir -p $(du)/usr/lib/pkgconfig
318 $(MAKE) -C $(builddiru) install \
319 CC="$(CCu)" \
320 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -D_REENTRANT" \
321 SHOBJ_LDFLAGS='-shared $(LDFLAGS)' \
322 SHLIB_XLDFLAGS='-Wl,-soname,`echo $$@ | sed s/\\..$$$$//`' \
323 SHLIB_LIBS=-ltinfo \
324 DESTDIR=$(CURDIR)/$(du) \
325 mandir=/usr/share/man \
326 infodir=/usr/share/info
327
328 dh_installdirs -p$(p_rlu) \
329 usr/lib/$(DEB_HOST_MULTIARCH)
330 cp -p $(du)/usr/lib/$(DEB_HOST_MULTIARCH)/lib{history,readline}.so.$(libversion) \
331 $(d_rlu)/usr/lib/$(DEB_HOST_MULTIARCH)/
332 ln -s libhistory.so.$(libversion) \
333 $(d_rlu)/usr/lib/$(DEB_HOST_MULTIARCH)/libhistory.so.$(soversion)
334 ln -s libreadline.so.$(libversion) \
335 $(d_rlu)/usr/lib/$(DEB_HOST_MULTIARCH)/libreadline.so.$(soversion)
336
337 dh_installdirs -p$(p_commu) \
338 usr/share/readline
339 install -m 644 debian/inputrc $(d_commu)/usr/share/readline/
340 endif
341
342 ifneq ($(build32),)
343 rm -rf $(d32)
344 mkdir -p $(d32)/usr/bin
345 mkdir -p $(d32)/usr/lib/pkgconfig
346 $(MAKE) -C $(builddir32) install \
347 CC="$(CC32)" \
348 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -D_REENTRANT" \
349 SHOBJ_LDFLAGS='-shared $(LDFLAGS)' \
350 SHLIB_XLDFLAGS='-Wl,-soname,`echo $$@ | sed s/\\..$$$$//`' \
351 SHLIB_LIBS=-ltinfo \
352 DESTDIR=$(CURDIR)/$(d32) \
353 mandir=/usr/share/man \
354 infodir=/usr/share/info
355
356 dh_installdirs -p$(p_rl32) \
357 $(lib32dir) \
358 usr/share/doc
359 cp -p $(d32)/usr/lib/lib{history,readline}.so.$(libversion) \
360 $(d_rl32)/$(lib32dir)/
361 ln -s libhistory.so.$(libversion) \
362 $(d_rl32)/$(lib32dir)/libhistory.so.$(soversion)
363 ln -s libreadline.so.$(libversion) \
364 $(d_rl32)/$(lib32dir)/libreadline.so.$(soversion)
365
366 dh_installdirs -p$(p_rld32) \
367 $(lib32dir) \
368 usr/share/doc
369 ln -s libhistory.so.$(soversion) \
370 $(d_rld32)/$(lib32dir)/libhistory.so
371 ln -s libreadline.so.$(soversion) \
372 $(d_rld32)/$(lib32dir)/libreadline.so
373 mv $(d32)/usr/lib/lib{history,readline}.a $(d_rld32)/$(lib32dir)/.
374 endif
375
376 ifneq ($(build64),)
377 rm -rf $(d64)
378 mkdir -p $(d64)/usr/bin
379 mkdir -p $(d64)/usr/lib/pkgconfig
380 $(MAKE) -C $(builddir64) install \
381 CC="$(CC64)" \
382 CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -D_REENTRANT" \
383 SHOBJ_LDFLAGS='-shared $(LDFLAGS)' \
384 SHLIB_XLDFLAGS='-Wl,-soname,`echo $$@ | sed s/\\..$$$$//`' \
385 SHLIB_LIBS=-ltinfo \
386 DESTDIR=$(CURDIR)/$(d64) \
387 mandir=/usr/share/man \
388 infodir=/usr/share/info
389
390 dh_installdirs -p$(p_rl64) \
391 $(lib64dir) \
392 usr/share/doc
393 dh_installdirs -p$(p_rld64) \
394 usr/share/doc
395 cp -p $(d64)/usr/lib/lib{history,readline}.so.$(libversion) \
396 $(d_rl64)/$(lib64dir)/
397 ln -s libhistory.so.$(libversion) \
398 $(d_rl64)/$(lib64dir)/libhistory.so.$(soversion)
399 ln -s libreadline.so.$(libversion) \
400 $(d_rl64)/$(lib64dir)/libreadline.so.$(soversion)
401
402 dh_installdirs -p$(p_rld64) \
403 $(lib64dir) \
404 usr/share/doc
405 ln -s libhistory.so.$(soversion) \
406 $(d_rld64)/$(lib64dir)/libhistory.so
407 ln -s libreadline.so.$(soversion) \
408 $(d_rld64)/$(lib64dir)/libreadline.so
409 mv $(d64)/usr/lib/lib{history,readline}.a $(d_rld64)/$(lib64dir)/.
410 endif
411
412 : # $(p_doc)
413 mkdir -p $(d_doc)/usr/share/info
414 mv $(d)/usr/share/info/{readline.info,history.info} \
415 $(d_doc)/usr/share/info/.
416
417 touch install-stamp
418
419 binary-indep: build install
420 dh_testdir
421 dh_testroot
422 mkdir -p $(d_doc)/usr/share/doc/$(p_rl)/examples
423 cp -p $(builddir)/examples/Makefile examples/*.c \
424 $(d_doc)/usr/share/doc/$(p_rl)/examples/
425 sed -i \
426 -e '/^srcdir =/s,=.*,= /usr/share/doc/$(p_rl)/examples,' \
427 -e '/^VPATH =/s,=.*,= .:/usr/share/doc/$(p_rl)/examples,' \
428 -e '/^top_srcdir =/s,=.*,= /usr/include/readline,' \
429 -e '/^BUILD_DIR =/s,=.*,= /usr/src/readline6/build,' \
430 -e 's/-ffile-prefix-map=[^ ]*[ ]*//g' \
431 -e 's/-fdebug-prefix-map=[^ ]*[ ]*//g' \
432 $(d_doc)/usr/share/doc/$(p_rl)/examples/Makefile
433 dh_link -p$(p_doc) \
434 /usr/share/doc/$(p_rl)/examples /usr/share/doc/$(p_doc)/examples
435
436 mkdir -p $(d_comm)/usr/share/lintian/overrides
437 cp -p debian/readline-common.overrides \
438 $(d_comm)/usr/share/lintian/overrides/readline-common
439 dh_installdocs -p$(p_comm) debian/inputrc.arrows
440 dh_installdocs -p$(p_doc)
441 dh_installchangelogs -i
442 dh_installdocs -i
443 dh_fixperms -i
444 dh_compress -i
445 dh_installdeb -i
446 dh_gencontrol -i
447 dh_md5sums -i
448 dh_builddeb -i
449
450 binary-arch: build install debian/libreadline8t64.preinst debian/libreadline8t64.postrm
451 dh_testdir
452 dh_testroot
453 dh_installdocs -p$(p_rl) \
454 USAGE debian/inputrc.arrows
455 dh_installchangelogs -p$(p_rl) CHANGES
456 dh_installexamples -p$(p_rl) \
457 examples/Inputrc
458 ln -sf $(p_rl) $(d_rld)/usr/share/doc/$(p_rld)
459
460 dh_installdocs -p$(p_rlfe) examples/rlfe/README
461 dh_installchangelogs -p$(p_rlfe) examples/rlfe/ChangeLog
462
463 dh_fixperms -p$(p_rl) -p$(p_rld) -p$(p_rlfe)
464 dh_strip -p$(p_rl) -p$(p_rld) -p$(p_rlfe)
465 dh_compress -p$(p_rl) -p$(p_rld) -p$(p_rlfe) \
466 -X.c -XMakefile
467 dh_makeshlibs -p$(p_rl) --add-udeb=$(p_rlu)
468 cp -p debian/libreadline.shlibs debian/shlibs.local
469 dh_shlibdeps -p$(p_rl) -p$(p_rld) -p$(p_rlfe) \
470 -L $(p_rl) -l $(d_rl)/usr/lib
471
472 ifneq ($(buildudeb),)
473 dh_compress -p$(p_rlu)
474 dh_fixperms -p$(p_rlu)
475 dh_strip -p$(p_rlu)
476 dh_makeshlibs -p$(p_rlu)
477 -dh_shlibdeps -p$(p_rlu) \
478 -L $(p_rlu) -l $(d_rlu)/usr/lib
479 endif
480
481 ifneq ($(build32),)
482 -ls -l $(d_rld)/usr/share/doc/$(p_rl)
483 dh_installdocs -p$(p_rl32) \
484 USAGE debian/inputrc.arrows
485 dh_installchangelogs -p$(p_rl32) CHANGES
486 ln -sf $(p_rl32) $(d_rld32)/usr/share/doc/$(p_rld32)
487 dh_compress -p$(p_rl32) -p$(p_rld32)
488 dh_fixperms -p$(p_rl32) -p$(p_rld32)
489 dh_strip -p$(p_rl32) -p$(p_rld32)
490 dh_makeshlibs -p$(p_rl32)
491 -dh_shlibdeps -p$(p_rl32) -p$(p_rld32) \
492 -L $(p_rl32) -l $(d_rl32)/usr/lib
493 -ls -l $(d_rld)/usr/share/doc/$(p_rl)
494 endif
495
496 ifneq ($(build64),)
497 -ls -l $(d_rld)/usr/share/doc/$(p_rl)
498 dh_installdocs -p$(p_rl64) \
499 USAGE debian/inputrc.arrows
500 dh_installchangelogs -p$(p_rl64) CHANGES
501 ln -sf $(p_rl64) $(d_rld64)/usr/share/doc/$(p_rld64)
502 dh_compress -p$(p_rl64) -p$(p_rld64)
503 dh_fixperms -p$(p_rl64) -p$(p_rld64)
504 dh_strip -p$(p_rl64) -p$(p_rld64)
505 dh_makeshlibs -p$(p_rl64)
506 -dh_shlibdeps -p$(p_rl64) -p$(p_rld64) \
507 -L $(p_rl64) -l $(d_rl64)/usr/lib
508 -ls -l $(d_rld)/usr/share/doc/$(p_rl)
509 endif
510
511 dh_installdeb -a
512 dh_gencontrol -a $(gencontrol_flags)
513 dh_md5sums -a
514 dh_builddeb -a
515
516 binary: binary-indep binary-arch
517
518 .PHONY: binary binary-arch binary-indep clean
519
520 # Local Variables:
521 # mode: makefile
522 # end: