2 # debian/rules file to build packages from wxWindows CVS source
4 # Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and
5 # variously stolen code :-)
6 # It makes copious use of the debhelper utilities written by
7 # Joey Hess and others.
13 release
:=$(shell dpkg-parsechangelog | sed
-n
's/^Source: wxwindows//p')
14 python_dir
:=python
$(shell python
-c
"import sys;print sys.version[:3]")
16 cross_host
=i586-mingw32msvc
17 cross_build
=$(shell .
/config.guess
)
19 config_cache
=..
/config_deb.cache
20 config_cache_cross
=..
/config_deb_cross.cache
23 package_wxbase_lib
=libwxbase
$(release
)
24 package_wxbase_dev
=libwxbase
$(release
)-dev
25 package_wxbase_dbg
=libwxbase
$(release
)-dbg
26 package_gtk_lib
=libwxgtk
$(release
)
27 package_gtk_dev
=libwxgtk
$(release
)-dev
28 package_gtk_dbg
=libwxgtk
$(release
)-dbg
29 package_gtk_py
=libwxgtk
$(release
)-python
30 package_gtk_contrib
=libwxgtk
$(release
)-contrib
31 package_gtk_contrib_dev
=libwxgtk
$(release
)-contrib-dev
32 package_headers
=wxwin
$(release
)-headers
33 package_i18n
=wxwin
$(release
)-i18n
34 package_doc
=wxwin
$(release
)-doc
35 package_examples
=wxwin
$(release
)-examples
37 package_gtk_univ
=libwxgtk
$(release
)-univ
39 package_wxbase_msw_dev
=libwxbase-msw
$(release
)-dev
40 package_wxbase_msw_dbg
=libwxbase-msw
$(release
)-dbg
41 package_msw_dev
=libwxmsw
$(release
)-dev
42 package_msw_dbg
=libwxmsw
$(release
)-dbg
43 package_headers_msw
=wxwin
$(release
)-headers-msw
46 objdir_wxbase_shared
=objs_wxbase_sh
47 objdir_wxbase_static
=objs_wxbase_st
48 objdir_wxbase_debug
=objs_wxbase_d
49 objdir_gtk_shared
=objs_gtk_sh
50 objdir_gtk_static
=objs_gtk_st
51 objdir_gtk_debug
=objs_gtk_d
52 objdir_doc_cruft
=objs_doc_con
53 objdir_doc
=docs
/wxWindows-manual.html
54 objdir_examples
=docs
/examples
57 objdir_gtk_univ
=objs_gtk_univ
58 objdir_univ_install
=objs_univ_install
60 objdir_wxbase_msw_shared
=objs_wxbase_msw_sh
61 objdir_wxbase_msw_static
=objs_wxbase_msw_st
62 objdir_wxbase_msw_dbg
=objs_wxbase_msw_d
63 objdir_msw_shared
=objs_msw_sh
64 objdir_msw_static
=objs_msw_st
65 objdir_msw_dbg
=objs_msw_d
67 objdirs
=$(objdir_wxbase_shared
) $(objdir_wxbase_static
) $(objdir_wxbase_debug
) \
68 $(objdir_gtk_shared
) $(objdir_gtk_static
) $(objdir_gtk_debug
) $(objdir_gtk_univ
) \
69 $(objdir_univ_install
) $(objdir_doc_cruft
) $(objdir_doc
) $(objdir_examples
) \
70 $(objdir_wxbase_msw_shared
) $(objdir_wxbase_msw_static
) $(objdir_wxbase_msw_dbg
) \
71 $(objdir_msw_shared
) $(objdir_msw_static
) $(objdir_msw_dbg
)
73 # note that the i18n package is actually arch indep (once built)
74 # but must be built (and installed) during the arch any phase as
75 # it's pulled out of the wxGtk shared lib package.
78 build_arch_stamps
=build-wxbase-shared-stamp build-wxbase-static-stamp \
79 build-wxbase-debug-stamp build-gtk-shared-stamp \
80 build-gtk-static-stamp build-gtk-debug-stamp \
81 build-contrib-shared-stamp build-contrib-static-stamp \
82 build-gtk-py-stamp build-i18n-stamp
84 # disable gtk-univ build, we'll replace it with x11-univ later.
85 # build-gtk-univ-stamp
87 build_indep_stamps
=build-examples-stamp build-doc-stamp
89 build_cross_stamps
=build-wxbase-msw-shared-stamp build-wxbase-msw-static-stamp \
90 build-wxbase-msw-dbg-stamp build-msw-shared-stamp \
91 build-msw-static-stamp build-msw-dbg-stamp
93 build_stamps_native
=$(build_arch_stamps
) $(build_indep_stamps
)
95 build_stamps
=$(build_stamps_native
) $(build_cross_stamps
)
98 install_all_arch
=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \
99 install-gtk-lib install-gtk-dev install-gtk-dbg \
100 install-gtk-contrib install-gtk-contrib-dev install-gtk-py \
101 install-headers install-i18n
103 # disable gtk-univ build, we'll replace it with x11-univ later.
106 install_all_indep
=install-examples install-doc
108 install_all_cross
=install-wxbase-msw-dev install-wxbase-msw-dbg install-msw-dev install-msw-dbg install-headers-msw
110 install_all_native
=$(install_all_arch
) $(install_all_indep
)
112 install_all
=$(install_all_native
) $(install_all_cross
)
115 wxconfig
:=$(shell pwd
)/$(objdir_gtk_shared
)/wx-config \
116 --prefix=$(shell pwd
) \
117 --exec-prefix
=$(shell pwd
)/$(objdir_gtk_shared
)
122 debian
/control
: debian
/control.in
123 sed
-e
's/=V/$(release)/g' < debian
/control.in
> debian
/control
125 control-files-stamp
: debian
/control
127 @for f in dirs postinst
; do \
128 echo
"generating control file $(package_wxbase_lib).$$f"; \
129 cp debian
/libwxbase.
$$f debian
/$(package_wxbase_lib
).
$$f; \
131 @for f in dirs files links postinst prerm
; do \
132 echo
"generating control file $(package_wxbase_dev).$$f"; \
133 sed
-e
's/=V/$(release)/g' < debian
/libwxbase-dev.
$$f \
134 > debian
/$(package_wxbase_dev
).
$$f; \
136 @for f in dirs links postinst prerm
; do \
137 echo
"generating control file $(package_wxbase_dbg).$$f"; \
138 sed
-e
's/=V/$(release)/g' < debian
/libwxbase-dbg.
$$f \
139 > debian
/$(package_wxbase_dbg
).
$$f; \
141 @for f in dirs postinst
; do \
142 echo
"generating control file $(package_gtk_lib).$$f"; \
143 cp debian
/libwxgtk.
$$f debian
/$(package_gtk_lib
).
$$f; \
145 @for f in dirs files links postinst prerm
; do \
146 echo
"generating control file $(package_gtk_dev).$$f"; \
147 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-dev.
$$f \
148 > debian
/$(package_gtk_dev
).
$$f; \
150 @for f in dirs links postinst prerm
; do \
151 echo
"generating control file $(package_gtk_dbg).$$f"; \
152 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-dbg.
$$f \
153 > debian
/$(package_gtk_dbg
).
$$f; \
155 @for f in dirs docs files menu postinst prerm
; do \
156 echo
"generating control file $(package_gtk_py).$$f"; \
157 sed
-e
's/=PY/$(python_dir)/g;s/=V/$(release)/g' < debian
/libwxgtk-python.
$$f \
158 > debian
/$(package_gtk_py
).
$$f; \
160 @for f in dirs postinst
; do \
161 echo
"generating control file $(package_gtk_contrib).$$f"; \
162 cp debian
/libwxgtk-contrib.
$$f debian
/$(package_gtk_contrib
).
$$f; \
164 @for f in dirs files
; do \
165 echo
"generating control file $(package_gtk_contrib_dev).$$f"; \
166 cp debian
/libwxgtk-contrib-dev.
$$f debian
/$(package_gtk_contrib_dev
).
$$f; \
168 @for f in dirs files
; do \
169 echo
"generating control file $(package_headers).$$f"; \
170 cp debian
/wxwin-headers.
$$f debian
/$(package_headers
).
$$f; \
172 @for f in dirs files
; do \
173 echo
"generating control file $(package_i18n).$$f"; \
174 cp debian
/wxwin-i18n.
$$f debian
/$(package_i18n
).
$$f; \
176 @for f in dirs docs doc-base
; do \
177 echo
"generating control file $(package_doc).$$f"; \
178 sed
-e
's/=V/$(release)/g' < debian
/wxwin-doc.
$$f \
179 > debian
/$(package_doc
).
$$f; \
181 @for f in examples
; do \
182 echo
"generating control file $(package_examples).$$f"; \
183 cp debian
/wxwin-examples.
$$f debian
/$(package_examples
).
$$f; \
185 @for f in dirs links postinst prerm
; do \
186 echo
"generating control file $(package_wxbase_msw_dev).$$f"; \
187 sed
-e
's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian
/libwxbase-msw-dev.
$$f \
188 > debian
/$(package_wxbase_msw_dev
).
$$f; \
190 @for f in dirs links postinst prerm
; do \
191 echo
"generating control file $(package_wxbase_msw_dbg).$$f"; \
192 sed
-e
's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian
/libwxbase-msw-dbg.
$$f \
193 > debian
/$(package_wxbase_msw_dbg
).
$$f; \
195 @for f in dirs links postinst prerm
; do \
196 echo
"generating control file $(package_msw_dev).$$f"; \
197 sed
-e
's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian
/libwxmsw-dev.
$$f \
198 > debian
/$(package_msw_dev
).
$$f; \
200 @for f in dirs links postinst prerm
; do \
201 echo
"generating control file $(package_msw_dbg).$$f"; \
202 sed
-e
's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian
/libwxmsw-dbg.
$$f \
203 > debian
/$(package_msw_dbg
).
$$f; \
206 echo
"generating control file $(package_headers_msw).$$f"; \
207 sed
-e
's/=H/$(cross_host)/g' < debian
/wxwin-headers-msw.
$$f \
208 > debian
/$(package_headers_msw
).
$$f; \
210 @for f in dirs links postinst prerm
; do \
211 echo
"generating control file $(package_gtk_univ).$$f"; \
212 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-univ.
$$f \
213 > debian
/$(package_gtk_univ
).
$$f; \
217 build_arch
: control-files-stamp
$(build_arch_stamps
)
218 build_all
: control-files-stamp
$(build_stamps_native
)
220 # Really we should probably do nothing here until we know which
221 # binary target is being called, but alpha builds were exploding
222 # (compiler segfaults) in random places when building under fakeroot
223 # from the binary-arch target. Build all -arch files here then, and
224 # let the -indep stuff fend for itself later.
229 build-wxbase-shared-stamp
:
231 mkdir
-p
$(objdir_wxbase_shared
)
232 cd
$(objdir_wxbase_shared
) \
233 && ..
/configure
--prefix=/usr \
234 --cache-file
=$(config_cache
) \
241 build-wxbase-static-stamp
:
243 mkdir
-p
$(objdir_wxbase_static
)
244 cd
$(objdir_wxbase_static
) \
245 && ..
/configure
--prefix=/usr \
246 --cache-file
=$(config_cache
) \
253 build-wxbase-debug-stamp
:
255 mkdir
-p
$(objdir_wxbase_debug
)
256 cd
$(objdir_wxbase_debug
) \
257 && ..
/configure
--prefix=/usr \
258 --cache-file
=$(config_cache
) \
266 build-gtk-shared-stamp
:
268 mkdir
-p
$(objdir_gtk_shared
)
269 cd
$(objdir_gtk_shared
) \
270 && ..
/configure
--prefix=/usr \
271 --cache-file
=$(config_cache
) \
279 --enable-dynamic-loader \
283 build-gtk-static-stamp
:
285 mkdir
-p
$(objdir_gtk_static
)
286 cd
$(objdir_gtk_static
) \
287 && ..
/configure
--prefix=/usr \
288 --cache-file
=$(config_cache
) \
296 --enable-dynamic-loader \
300 build-gtk-debug-stamp
:
302 mkdir
-p
$(objdir_gtk_debug
)
303 cd
$(objdir_gtk_debug
) \
304 && ..
/configure
--prefix=/usr \
305 --cache-file
=$(config_cache
) \
314 --enable-dynamic-loader \
318 build-gtk-univ-stamp
:
320 mkdir
-p
$(objdir_gtk_univ
)
321 cd
$(objdir_gtk_univ
) \
322 && ..
/configure
--prefix=/usr \
323 --cache-file
=$(config_cache
) \
332 --enable-dynamic-loader \
336 build-contrib-shared-stamp
: build-gtk-shared-stamp
338 cd
$(objdir_gtk_shared
)/contrib
/src \
342 build-contrib-static-stamp
: build-gtk-static-stamp
344 cd
$(objdir_gtk_static
)/contrib
/src \
348 build-gtk-py-stamp
: build-gtk-shared-stamp
352 && .
/setup.py build IN_CVS_TREE
=1 WX_CONFIG
='$(wxconfig)'
355 build-doc-stamp
: build-gtk-shared-stamp
357 cd
$(objdir_gtk_shared
)/utils
/tex2rtf
/src \
360 mkdir
$(objdir_doc_cruft
)
361 cd
$(objdir_doc_cruft
) \
362 && LD_LIBRARY_PATH
=..
/$(objdir_gtk_shared
)/lib
:$(LD_LIBRARY_PATH
) \
363 ..
/$(objdir_gtk_shared
)/utils
/tex2rtf
/src
/tex2rtf \
364 ..
/docs
/latex
/wx
/manual.
tex ..
/$(objdir_doc
)/wxwin.htm
-twice
-html
365 cp docs
/latex
/wx
/*.gif
$(objdir_doc
)
366 rm -rf
$(objdir_doc_cruft
)
367 rm -f
$(objdir_doc
)/wxwin.con
$(objdir_doc
)/wxwin.hh
* \
368 $(objdir_doc
)/wxwin.htx
$(objdir_doc
)/wxwin.ref
371 build-examples-stamp
: build-gtk-shared-stamp
373 mkdir
-p
$(objdir_examples
)
375 # copy all samples and the Makefile generated for libwxgtk.
376 cp
-a samples
$(objdir_examples
)
377 rm -f
$(objdir_examples
)/samples
/Makefile
378 cp
-a
$(objdir_gtk_shared
)/samples
/Makefile
$(objdir_examples
)/samples
380 cp
-a demos
$(objdir_examples
)
381 cp
-a wxPython
/demo
$(objdir_examples
)/wxPython
382 @for d in
$(objdir_examples
)/demos
$(objdir_examples
)/samples
; do \
384 && mv Makefile.in Makefile \
385 && rm -f configure
* \
386 && find
-name
'Makefile.in' -exec
rm -f
'{}' ';' \
387 && for f in
$$(find
-type d
); do \
388 if
[ -f
$$f/makefile.unx
]; then \
389 mv
$$f/makefile.unx
$$f/Makefile
; \
395 build-i18n-stamp
: build-gtk-shared-stamp
398 # touch .po files first, since if they are not already up
399 # to date then _now_ is not the time to fix it.
400 # That should have been been done before cvs was tagged.
406 build-wxbase-msw-shared-stamp
:
408 mkdir
-p
$(objdir_wxbase_msw_shared
)
409 cd
$(objdir_wxbase_msw_shared
) \
410 && ..
/configure
--prefix=/usr
/$(cross_host
) \
411 --cache-file
=$(config_cache_cross
) \
412 --host
=$(cross_host
) \
413 --build
=$(cross_build
) \
418 build-wxbase-msw-static-stamp
:
420 mkdir
-p
$(objdir_wxbase_msw_static
)
421 cd
$(objdir_wxbase_msw_static
) \
422 && ..
/configure
--prefix=/usr
/$(cross_host
) \
423 --cache-file
=$(config_cache_cross
) \
424 --host
=$(cross_host
) \
425 --build
=$(cross_build
) \
431 # Note this builds dll only, since wxmsw static debug is > 130MB !
432 build-wxbase-msw-dbg-stamp
:
434 mkdir
-p
$(objdir_wxbase_msw_dbg
)
435 cd
$(objdir_wxbase_msw_dbg
) \
436 && ..
/configure
--prefix=/usr
/$(cross_host
) \
437 --cache-file
=$(config_cache_cross
) \
438 --host
=$(cross_host
) \
439 --build
=$(cross_build
) \
445 build-msw-shared-stamp
:
447 mkdir
-p
$(objdir_msw_shared
)
448 cd
$(objdir_msw_shared
) \
449 && ..
/configure
--prefix=/usr
/$(cross_host
) \
450 --cache-file
=$(config_cache_cross
) \
451 --host
=$(cross_host
) \
452 --build
=$(cross_build
) \
456 build-msw-static-stamp
:
458 mkdir
-p
$(objdir_msw_static
)
459 cd
$(objdir_msw_static
) \
460 && ..
/configure
--prefix=/usr
/$(cross_host
) \
461 --cache-file
=$(config_cache_cross
) \
462 --host
=$(cross_host
) \
463 --build
=$(cross_build
) \
470 mkdir
-p
$(objdir_msw_dbg
)
471 cd
$(objdir_msw_dbg
) \
472 && ..
/configure
--prefix=/usr
/$(cross_host
) \
473 --cache-file
=$(config_cache_cross
) \
474 --host
=$(cross_host
) \
475 --build
=$(cross_build
) \
481 clean: debian
/control
485 rm -rf config_deb.cache config_deb_cross.cache control-files-stamp
$(build_stamps
) $(objdirs
)
487 rm -f docs
/latex
/wx
/manual.bb
488 rm -f
$(objdir_i18n
)/*.mo
493 && rm -rf contrib
/gizmos
/contrib \
494 && rm -rf contrib
/ogl
/contrib \
495 && rm -rf contrib
/stc
/contrib \
496 && rm -rf contrib
/xrc
/contrib \
499 # We do the equivalent of this above by removing build, unfortunately
500 # its not enough by itself to get the tree properly clean again.
501 # && ./setup.py clean
504 rm -f debian
/$(package_wxbase_lib
).
*
505 rm -f debian
/$(package_wxbase_dev
).
*
506 rm -f debian
/$(package_wxbase_dbg
).
*
507 rm -f debian
/$(package_gtk_lib
).
*
508 rm -f debian
/$(package_gtk_dev
).
*
509 rm -f debian
/$(package_gtk_dbg
).
*
510 rm -f debian
/$(package_gtk_py
).
*
511 rm -f debian
/$(package_gtk_contrib
).
*
512 rm -f debian
/$(package_gtk_contrib_dev
).
*
513 rm -f debian
/$(package_headers
).
*
514 rm -f debian
/$(package_i18n
).
*
515 rm -f debian
/$(package_doc
).
*
516 rm -f debian
/$(package_examples
).
*
517 rm -f debian
/$(package_gtk_univ
).
*
518 rm -f debian
/$(package_wxbase_msw_dev
).
*
519 rm -f debian
/$(package_wxbase_msw_dbg
).
*
520 rm -f debian
/$(package_msw_dev
).
*
521 rm -f debian
/$(package_msw_dbg
).
*
522 rm -f debian
/$(package_headers_msw
).
*
524 install_arch
: build_arch
$(install_all_arch
)
526 install: build_all
$(install_all_native
)
528 install-wxbase-lib
: DH_OPTIONS
=-p
$(package_wxbase_lib
)
529 install-wxbase-lib
: build-wxbase-shared-stamp
534 cp
-a
$(objdir_wxbase_shared
)/lib
/* debian
/$(package_wxbase_lib
)/usr
/lib
535 cp
$(objdir_wxbase_shared
)/wxbase-
$(release
)-config debian
/$(package_wxbase_lib
)/usr
/bin
/
537 install-wxbase-dev
: DH_OPTIONS
=-p
$(package_wxbase_dev
)
538 install-wxbase-dev
: build-wxbase-static-stamp install-wxbase-lib
543 dh_movefiles
--sourcedir
=debian
/$(package_wxbase_lib
)
544 cp
$(objdir_wxbase_static
)/lib
/*.a debian
/$(package_wxbase_dev
)/usr
/lib
546 install-wxbase-dbg
: DH_OPTIONS
=-p
$(package_wxbase_dbg
)
547 install-wxbase-dbg
: build-wxbase-debug-stamp
552 cp
-a
$(objdir_wxbase_debug
)/lib
/* debian
/$(package_wxbase_dbg
)/usr
/lib
553 cp
$(objdir_wxbase_debug
)/wxbased-
$(release
)-config debian
/$(package_wxbase_dbg
)/usr
/bin
/
554 cp debian
/lintian-override debian
/$(package_wxbase_dbg
)/usr
/share
/lintian
/overrides
/$(package_wxbase_dbg
)
556 install-gtk-lib
: DH_OPTIONS
=-p
$(package_gtk_lib
)
557 install-gtk-lib
: build-gtk-shared-stamp
562 cd
$(objdir_gtk_shared
) \
563 && $(MAKE
) install prefix=`pwd`/..
/debian
/$(package_gtk_lib
)/usr
564 rm -f debian
/$(package_gtk_lib
)/usr
/bin
/wx-config
566 install-gtk-dev
: DH_OPTIONS
=-p
$(package_gtk_dev
)
567 install-gtk-dev
: build-gtk-static-stamp install-gtk-lib
572 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
573 cp
$(objdir_gtk_static
)/lib
/libwx_gtk-
*.a debian
/$(package_gtk_dev
)/usr
/lib
574 cp
$(objdir_gtk_static
)/lib
/libwx_gtk_gl-
*.a debian
/$(package_gtk_dev
)/usr
/lib
576 install-gtk-dbg
: DH_OPTIONS
=-p
$(package_gtk_dbg
)
577 install-gtk-dbg
: build-gtk-debug-stamp
582 cp
-a
$(objdir_gtk_debug
)/lib
/* debian
/$(package_gtk_dbg
)/usr
/lib
583 cp
$(objdir_gtk_debug
)/wxgtkd-
$(release
)-config debian
/$(package_gtk_dbg
)/usr
/bin
/
584 cp debian
/lintian-override debian
/$(package_gtk_dbg
)/usr
/share
/lintian
/overrides
/$(package_gtk_dbg
)
586 install-gtk-univ
: DH_OPTIONS
=-p
$(package_gtk_univ
)
587 install-gtk-univ
: build-gtk-univ-stamp
592 cp
-a
$(objdir_gtk_univ
)/lib
/* debian
/$(package_gtk_univ
)/usr
/lib
593 cp
$(objdir_gtk_univ
)/wxgtkuniv-
$(release
)-config debian
/$(package_gtk_univ
)/usr
/bin
/
594 cp debian
/lintian-override debian
/$(package_gtk_univ
)/usr
/share
/lintian
/overrides
/$(package_gtk_univ
)
596 install-gtk-contrib
: DH_OPTIONS
=-p
$(package_gtk_contrib
)
597 install-gtk-contrib
: build-contrib-shared-stamp
602 cd
$(objdir_gtk_shared
)/contrib
/src \
603 && $(MAKE
) install prefix=`pwd`/..
/..
/..
/debian
/$(package_gtk_contrib
)/usr
605 install-gtk-contrib-dev
: DH_OPTIONS
=-p
$(package_gtk_contrib_dev
)
606 install-gtk-contrib-dev
: build-contrib-static-stamp install-gtk-dev
611 dh_movefiles
--sourcedir
=debian
/$(package_gtk_contrib
)
612 cp
$(objdir_gtk_static
)/lib
/*.a debian
/$(package_gtk_contrib_dev
)/usr
/lib
613 rm -f debian
/$(package_gtk_contrib_dev
)/usr
/lib
/libwx_gtk-
*.a
614 rm -f debian
/$(package_gtk_contrib_dev
)/usr
/lib
/libwx_gtk_gl-
*.a
616 install-gtk-py
: DH_OPTIONS
=-p
$(package_gtk_py
)
617 install-gtk-py
: build-gtk-py-stamp
623 && .
/setup.py
install \
624 --prefix=`pwd`/..
/debian
/$(package_gtk_py
)/usr \
625 WX_CONFIG
='$(wxconfig)'
626 find debian
/$(package_gtk_py
)/usr
/lib
/$(python_dir
)/site-packages
/wxPython \
627 -name
'*.py?' -exec
rm '{}' ';'
629 dh_installman debian
/wxPython-tools
.1
630 dh_link usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/img2py
.1 \
631 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/img2xpm
.1 \
632 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/img2png
.1 \
633 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pycrust
.1 \
634 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pyshell
.1 \
635 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/xrced
.1 \
636 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/helpviewer
.1
638 install-headers
: DH_OPTIONS
=-p
$(package_headers
)
639 install-headers
: install-gtk-lib
645 # The only way to be really sure we get the univ headers correct is to install
646 # them. Do that in a scratch dirs, and move the gtk ones last, so at least
647 # they win in the result of any uncaught conflict.
649 # cd $(objdir_gtk_univ) \
650 # && $(MAKE) install prefix=`pwd`/../$(objdir_univ_install)/usr
652 # dh_movefiles --sourcedir=$(objdir_univ_install)
653 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
655 dh_installman debian
/wx-config
.1
657 install-i18n
: DH_OPTIONS
=-p
$(package_i18n
)
658 install-i18n
: build-i18n-stamp install-gtk-lib
663 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
665 install-doc
: DH_OPTIONS
=-p
$(package_doc
)
666 install-doc
: build-doc-stamp
672 install-examples
: DH_OPTIONS
=-p
$(package_examples
)
673 install-examples
: build-examples-stamp
679 install-wxbase-msw-dev
: DH_OPTIONS
=-p
$(package_wxbase_msw_dev
)
680 install-wxbase-msw-dev
: build-wxbase-msw-shared-stamp build-wxbase-msw-static-stamp
685 cp
-a
$(objdir_wxbase_msw_shared
)/lib
/* debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
686 cp
-a
$(objdir_wxbase_msw_static
)/lib
/*.a debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
687 cp
$(objdir_wxbase_msw_shared
)/wxbase-
$(release
)-$(cross_host
)-config debian
/$(package_wxbase_msw_dev
)/usr
/bin
/
688 $(cross_host
)-strip --strip-debug debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
690 install-wxbase-msw-dbg
: DH_OPTIONS
=-p
$(package_wxbase_msw_dbg
)
691 install-wxbase-msw-dbg
: build-wxbase-msw-dbg-stamp
696 cp
-a
$(objdir_wxbase_msw_dbg
)/lib
/* debian
/$(package_wxbase_msw_dbg
)/usr
/$(cross_host
)/lib
697 cp
$(objdir_wxbase_msw_dbg
)/wxbased-
$(release
)-$(cross_host
)-config debian
/$(package_wxbase_msw_dbg
)/usr
/bin
/
698 # No static lib, they're freakin' huge!
699 #$(cross_host)-strip --strip-debug debian/$(package_wxbase_msw_dbg)/usr/$(cross_host)/lib/*.a
701 install-msw-dev
: DH_OPTIONS
=-p
$(package_msw_dev
)
702 install-msw-dev
: build-msw-shared-stamp build-msw-static-stamp
707 cp
-a
$(objdir_msw_shared
)/lib
/* debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
708 cp
-a
$(objdir_msw_static
)/lib
/*.a debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
709 cp
$(objdir_msw_shared
)/wxmsw-
$(release
)-$(cross_host
)-config debian
/$(package_msw_dev
)/usr
/bin
/
710 $(cross_host
)-strip --strip-debug debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
712 install-msw-dbg
: DH_OPTIONS
=-p
$(package_msw_dbg
)
713 install-msw-dbg
: build-msw-dbg-stamp
718 cp
-a
$(objdir_msw_dbg
)/lib
/* debian
/$(package_msw_dbg
)/usr
/$(cross_host
)/lib
719 cp
$(objdir_msw_dbg
)/wxmswd-
$(release
)-$(cross_host
)-config debian
/$(package_msw_dbg
)/usr
/bin
/
720 # No static lib, they're freakin' huge!
721 #$(cross_host)-strip --strip-debug debian/$(package_msw_dbg)/usr/$(cross_host)/lib/*.a
723 install-headers-msw
: DH_OPTIONS
=-p
$(package_headers_msw
)
729 @
# Symlink all the headers that will be installed by the main -headers
730 @
# package to where the cross compiler will expect them.
731 @for f in
`ls -1 include/wx`; do \
732 ln
-s
/usr
/include/wx
/$$f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
; \
733 echo
"linking header /usr/include/wx/$$f"; \
735 @
# But install this lot for real.
736 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
/msw
737 cp
-a
include/wx
/msw debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
738 @
# and remove this cruft(?)
739 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
/treelay.h
751 @
# Don't strip debug libs at all, and strip cross libs elsewhere
752 @
# with the cross host tools until dh_strip gets smarter.
753 dh_strip
-N
$(package_gtk_dbg
) -N
$(package_wxbase_dbg
) \
754 -N
$(package_wxbase_msw_dev
) -N
$(package_wxbase_msw_dbg
) \
755 -N
$(package_msw_dev
) -N
$(package_msw_dbg
)
759 dh_makeshlibs
-N
$(package_gtk_py
) -V
761 dh_shlibdeps
-ldebian
/$(package_gtk_lib
)/usr
/lib
766 # Build architecture-independent files here.
767 # Note that you currently can't build the indep packages without first
768 # building the arch specific package files needed to create them.
769 binary-indep
: build_all
install
770 $(MAKE
) -f debian
/rules \
771 DH_OPTIONS
="-i -N$(package_wxbase_msw_dev) -N$(package_wxbase_msw_dbg) -N$(package_msw_dev) -N$(package_msw_dbg) -N$(package_headers_msw) -N$(package_gtk_univ)" \
774 # Build just the architecture-dependent files here.
775 binary-arch
: build_arch install_arch
776 $(MAKE
) -f debian
/rules \
777 DH_OPTIONS
="-a -N$(package_wxbase_msw_dev) -N$(package_wxbase_msw_dbg) -N$(package_msw_dev) -N$(package_msw_dbg) -N$(package_headers_msw) -N$(package_gtk_univ)" \
780 # Build all packages target.
781 binary
: binary-arch binary-indep
783 # This is a special target for building the wxMSW-cross packages.
784 # It's not currently called during the official package build run
785 # but may be run separately to build the extra packages.
786 # There is an implied build dep on the mingw32 cross compiler
787 # that is not in the control file.
788 binary-cross
: control-files-stamp
$(install_all_cross
)
789 $(MAKE
) -f debian
/rules \
790 DH_OPTIONS
="-p$(package_wxbase_msw_dev) -p$(package_wxbase_msw_dbg) -p$(package_msw_dev) -p$(package_msw_dbg) -p$(package_headers_msw)" \
794 ############################################################################
796 # Some rules to build a subset of the complete list of packages that can be
797 # built from CVS. Beware that packages produced with these rules may *NOT*
798 # be compatible with packages built using the 'binary' target or even with
799 # Debian policy. Do not distribute packages built with these rules, they
800 # are currently useful for rapid in-house testing by developers only.
802 # libwxgtk shared lib package
803 binary-gtk
: control-files-stamp install-gtk-lib install-headers
804 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_headers)" binary-common
806 binary-gtk-dev
: control-files-stamp install-gtk-dev install-headers
807 $(MAKE
) -f debian
/rules \
808 DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \
811 binary-gtk-dbg
: control-files-stamp install-gtk-dbg install-headers
812 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_headers)" binary-common
814 # libwxbase shared lib package
815 binary-wxbase
: control-files-stamp install-wxbase-lib install-headers
816 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_wxbase_lib) -p$(package_headers)" binary-common
818 binary-wxbase-dev
: control-files-stamp install-wxbase-dev install-headers
819 $(MAKE
) -f debian
/rules \
820 DH_OPTIONS
="-p$(package_wxbase_lib) -p$(package_wxbase_dev) -p$(package_headers)" \
823 binary-wxbase-dbg
: control-files-stamp install-wxbase-dbg install-headers
824 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_wxbase_dbg) -p$(package_headers)" binary-common
826 binary-univ
: control-files-stamp install-gtk-univ
827 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_univ)" binary-common
830 binary-doc
: control-files-stamp install-doc
831 $(MAKE
) -f debian
/rules DH_OPTIONS
=-p
$(package_doc
) binary-common
833 binary-fast
:control-files-stamp install-gtk-dbg install-msw-dev install-headers install-headers-msw
834 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_msw_dev) -p$(package_headers) -p$(package_headers_msw)" binary-common
837 .PHONY
: build build_all build_arch
clean binary-indep binary-arch binary binary-common \
838 binary-gtk binary-gtk-dev binary-gtk-dbg binary-wxbase binary-wxbase-dev \
839 binary-wxbase-dbg binary-doc binary-cross \
840 install install_arch install-wxbase-lib \
841 install-wxbase-dev install-wxbase-dbg install-gtk-lib install-gtk-dev \
842 install-gtk-dbg install-gtk-contrib install-gtk-contrib-dev \
843 install-gtk-py install-headers install-i18n install-doc install-examples \
844 install-wxbase-msw-dev install-msw-dev install-headers-msw \
845 install-wxbase-msw-dbg install-msw-dbg