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
59 objdir_wxbase_msw_shared
=objs_wxbase_msw_sh
60 objdir_wxbase_msw_static
=objs_wxbase_msw_st
61 objdir_wxbase_msw_dbg
=objs_wxbase_msw_d
62 objdir_msw_shared
=objs_msw_sh
63 objdir_msw_static
=objs_msw_st
64 objdir_msw_dbg
=objs_msw_d
66 objdirs
=$(objdir_wxbase_shared
) $(objdir_wxbase_static
) $(objdir_wxbase_debug
) \
67 $(objdir_gtk_shared
) $(objdir_gtk_static
) $(objdir_gtk_debug
) $(objdir_gtk_univ
) \
68 $(objdir_doc_cruft
) $(objdir_doc
) $(objdir_examples
) \
69 $(objdir_wxbase_msw_shared
) $(objdir_wxbase_msw_static
) $(objdir_wxbase_msw_dbg
) \
70 $(objdir_msw_shared
) $(objdir_msw_static
) $(objdir_msw_dbg
)
72 # note that the i18n package is actually arch indep (once built)
73 # but must be built (and installed) during the arch any phase as
74 # it's pulled out of the wxGtk shared lib package.
77 build_arch_stamps
=build-wxbase-shared-stamp build-wxbase-static-stamp \
78 build-wxbase-debug-stamp build-gtk-shared-stamp \
79 build-gtk-static-stamp build-gtk-debug-stamp \
80 build-gtk-univ-stamp \
81 build-contrib-shared-stamp build-contrib-static-stamp \
82 build-gtk-py-stamp build-i18n-stamp
84 build_indep_stamps
=build-examples-stamp build-doc-stamp
86 build_cross_stamps
=build-wxbase-msw-shared-stamp build-wxbase-msw-static-stamp \
87 build-wxbase-msw-dbg-stamp build-msw-shared-stamp \
88 build-msw-static-stamp build-msw-dbg-stamp
90 build_stamps_native
=$(build_arch_stamps
) $(build_indep_stamps
)
92 build_stamps
=$(build_stamps_native
) $(build_cross_stamps
)
95 install_all_arch
=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \
96 install-gtk-lib install-gtk-dev install-gtk-dbg \
98 install-gtk-contrib install-gtk-contrib-dev install-gtk-py \
99 install-headers install-i18n
101 install_all_indep
=install-examples install-doc
103 install_all_cross
=install-wxbase-msw-dev install-wxbase-msw-dbg install-msw-dev install-msw-dbg install-headers-msw
105 install_all_native
=$(install_all_arch
) $(install_all_indep
)
107 install_all
=$(install_all_native
) $(install_all_cross
)
110 wxconfig
:=$(shell pwd
)/$(objdir_gtk_shared
)/wx-config \
111 --prefix=$(shell pwd
) \
112 --exec-prefix
=$(shell pwd
)/$(objdir_gtk_shared
)
117 debian
/control
: debian
/control.in
118 sed
-e
's/=V/$(release)/g' < debian
/control.in
> debian
/control
120 control-files-stamp
: debian
/control
122 @for f in dirs postinst
; do \
123 echo
"generating control file $(package_wxbase_lib).$$f"; \
124 cp debian
/libwxbase.
$$f debian
/$(package_wxbase_lib
).
$$f; \
126 @for f in dirs files links postinst prerm
; do \
127 echo
"generating control file $(package_wxbase_dev).$$f"; \
128 sed
-e
's/=V/$(release)/g' < debian
/libwxbase-dev.
$$f \
129 > debian
/$(package_wxbase_dev
).
$$f; \
131 @for f in dirs links postinst prerm
; do \
132 echo
"generating control file $(package_wxbase_dbg).$$f"; \
133 sed
-e
's/=V/$(release)/g' < debian
/libwxbase-dbg.
$$f \
134 > debian
/$(package_wxbase_dbg
).
$$f; \
136 @for f in dirs postinst
; do \
137 echo
"generating control file $(package_gtk_lib).$$f"; \
138 cp debian
/libwxgtk.
$$f debian
/$(package_gtk_lib
).
$$f; \
140 @for f in dirs files links postinst prerm
; do \
141 echo
"generating control file $(package_gtk_dev).$$f"; \
142 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-dev.
$$f \
143 > debian
/$(package_gtk_dev
).
$$f; \
145 @for f in dirs links postinst prerm
; do \
146 echo
"generating control file $(package_gtk_dbg).$$f"; \
147 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-dbg.
$$f \
148 > debian
/$(package_gtk_dbg
).
$$f; \
150 @for f in dirs links postinst prerm
; do \
151 echo
"generating control file $(package_gtk_univ).$$f"; \
152 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-univ.
$$f \
153 > debian
/$(package_gtk_univ
).
$$f; \
155 @for f in dirs docs files 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; \
212 build_arch
: control-files-stamp
$(build_arch_stamps
)
213 build_all
: control-files-stamp
$(build_stamps_native
)
215 # Really we should probably do nothing here until we know which
216 # binary target is being called, but alpha builds were exploding
217 # (compiler segfaults) in random places when building under fakeroot
218 # from the binary-arch target. Build all -arch files here then, and
219 # let the -indep stuff fend for itself later.
224 build-wxbase-shared-stamp
:
226 mkdir
-p
$(objdir_wxbase_shared
)
227 cd
$(objdir_wxbase_shared
) \
228 && ..
/configure
--prefix=/usr \
229 --cache-file
=$(config_cache
) \
236 build-wxbase-static-stamp
:
238 mkdir
-p
$(objdir_wxbase_static
)
239 cd
$(objdir_wxbase_static
) \
240 && ..
/configure
--prefix=/usr \
241 --cache-file
=$(config_cache
) \
248 build-wxbase-debug-stamp
:
250 mkdir
-p
$(objdir_wxbase_debug
)
251 cd
$(objdir_wxbase_debug
) \
252 && ..
/configure
--prefix=/usr \
253 --cache-file
=$(config_cache
) \
261 build-gtk-shared-stamp
:
263 mkdir
-p
$(objdir_gtk_shared
)
264 cd
$(objdir_gtk_shared
) \
265 && ..
/configure
--prefix=/usr \
266 --cache-file
=$(config_cache
) \
277 build-gtk-static-stamp
:
279 mkdir
-p
$(objdir_gtk_static
)
280 cd
$(objdir_gtk_static
) \
281 && ..
/configure
--prefix=/usr \
282 --cache-file
=$(config_cache
) \
293 build-gtk-debug-stamp
:
295 mkdir
-p
$(objdir_gtk_debug
)
296 cd
$(objdir_gtk_debug
) \
297 && ..
/configure
--prefix=/usr \
298 --cache-file
=$(config_cache
) \
310 build-gtk-univ-stamp
:
312 mkdir
-p
$(objdir_gtk_univ
)
313 cd
$(objdir_gtk_univ
) \
314 && ..
/configure
--prefix=/usr \
315 --cache-file
=$(config_cache
) \
327 build-contrib-shared-stamp
: build-gtk-shared-stamp
329 cd
$(objdir_gtk_shared
)/contrib
/src \
333 build-contrib-static-stamp
: build-gtk-static-stamp
335 cd
$(objdir_gtk_static
)/contrib
/src \
339 build-gtk-py-stamp
: build-gtk-shared-stamp
343 && .
/setup.py build IN_CVS_TREE
=1 WX_CONFIG
='$(wxconfig)'
346 build-doc-stamp
: build-gtk-shared-stamp
348 cd
$(objdir_gtk_shared
)/utils
/tex2rtf
/src \
351 mkdir
$(objdir_doc_cruft
)
352 cd
$(objdir_doc_cruft
) \
353 && LD_LIBRARY_PATH
=..
/$(objdir_gtk_shared
)/lib
:$(LD_LIBRARY_PATH
) \
354 ..
/$(objdir_gtk_shared
)/utils
/tex2rtf
/src
/tex2rtf \
355 ..
/docs
/latex
/wx
/manual.
tex ..
/$(objdir_doc
)/wxwin.htm
-twice
-html
356 cp docs
/latex
/wx
/*.gif
$(objdir_doc
)
357 rm -rf
$(objdir_doc_cruft
)
358 rm -f
$(objdir_doc
)/wxwin.con
$(objdir_doc
)/wxwin.hh
* \
359 $(objdir_doc
)/wxwin.htx
$(objdir_doc
)/wxwin.ref
362 build-examples-stamp
: build-gtk-shared-stamp
364 mkdir
-p
$(objdir_examples
)
366 # copy all samples and the Makefile generated for libwxgtk.
367 cp
-a samples
$(objdir_examples
)
368 rm -f
$(objdir_examples
)/samples
/Makefile
369 cp
-a
$(objdir_gtk_shared
)/samples
/Makefile
$(objdir_examples
)/samples
371 cp
-a demos
$(objdir_examples
)
372 cp
-a wxPython
/demo
$(objdir_examples
)/wxPython
373 @for d in
$(objdir_examples
)/demos
$(objdir_examples
)/samples
; do \
375 && mv Makefile.in Makefile \
376 && rm -f configure
* \
377 && find
-name
'Makefile.in' -exec
rm -f
'{}' ';' \
378 && for f in
$$(find
-type d
); do \
379 if
[ -f
$$f/makefile.unx
]; then \
380 mv
$$f/makefile.unx
$$f/Makefile
; \
386 build-i18n-stamp
: build-gtk-shared-stamp
389 # touch .po files first, since if they are not already up
390 # to date then _now_ is not the time to fix it.
391 # That should have been been done before cvs was tagged.
397 build-wxbase-msw-shared-stamp
:
399 mkdir
-p
$(objdir_wxbase_msw_shared
)
400 cd
$(objdir_wxbase_msw_shared
) \
401 && ..
/configure
--prefix=/usr
/$(cross_host
) \
402 --cache-file
=$(config_cache_cross
) \
403 --host
=$(cross_host
) \
404 --build
=$(cross_build
) \
409 build-wxbase-msw-static-stamp
:
411 mkdir
-p
$(objdir_wxbase_msw_static
)
412 cd
$(objdir_wxbase_msw_static
) \
413 && ..
/configure
--prefix=/usr
/$(cross_host
) \
414 --cache-file
=$(config_cache_cross
) \
415 --host
=$(cross_host
) \
416 --build
=$(cross_build
) \
422 # Note this builds dll only, since wxmsw static debug is > 130MB !
423 build-wxbase-msw-dbg-stamp
:
425 mkdir
-p
$(objdir_wxbase_msw_dbg
)
426 cd
$(objdir_wxbase_msw_dbg
) \
427 && ..
/configure
--prefix=/usr
/$(cross_host
) \
428 --cache-file
=$(config_cache_cross
) \
429 --host
=$(cross_host
) \
430 --build
=$(cross_build
) \
436 build-msw-shared-stamp
:
438 mkdir
-p
$(objdir_msw_shared
)
439 cd
$(objdir_msw_shared
) \
440 && ..
/configure
--prefix=/usr
/$(cross_host
) \
441 --cache-file
=$(config_cache_cross
) \
442 --host
=$(cross_host
) \
443 --build
=$(cross_build
) \
447 build-msw-static-stamp
:
449 mkdir
-p
$(objdir_msw_static
)
450 cd
$(objdir_msw_static
) \
451 && ..
/configure
--prefix=/usr
/$(cross_host
) \
452 --cache-file
=$(config_cache_cross
) \
453 --host
=$(cross_host
) \
454 --build
=$(cross_build
) \
461 mkdir
-p
$(objdir_msw_dbg
)
462 cd
$(objdir_msw_dbg
) \
463 && ..
/configure
--prefix=/usr
/$(cross_host
) \
464 --cache-file
=$(config_cache_cross
) \
465 --host
=$(cross_host
) \
466 --build
=$(cross_build
) \
472 clean: debian
/control
476 rm -rf config_deb.cache config_deb_cross.cache control-files-stamp
$(build_stamps
) $(objdirs
)
478 rm -f docs
/latex
/wx
/manual.bb
479 rm -f
$(objdir_i18n
)/*.mo
482 && .
/setup.py
clean \
485 && rm -rf contrib
/gizmos
/contrib \
486 && rm -rf contrib
/ogl
/contrib \
487 && rm -rf contrib
/stc
/contrib \
488 && rm -rf contrib
/xrc
/contrib \
492 rm -f debian
/$(package_wxbase_lib
).
*
493 rm -f debian
/$(package_wxbase_dev
).
*
494 rm -f debian
/$(package_wxbase_dbg
).
*
495 rm -f debian
/$(package_gtk_lib
).
*
496 rm -f debian
/$(package_gtk_dev
).
*
497 rm -f debian
/$(package_gtk_dbg
).
*
498 rm -f debian
/$(package_gtk_univ
).
*
499 rm -f debian
/$(package_gtk_py
).
*
500 rm -f debian
/$(package_gtk_contrib
).
*
501 rm -f debian
/$(package_gtk_contrib_dev
).
*
502 rm -f debian
/$(package_headers
).
*
503 rm -f debian
/$(package_i18n
).
*
504 rm -f debian
/$(package_doc
).
*
505 rm -f debian
/$(package_examples
).
*
506 rm -f debian
/$(package_wxbase_msw_dev
).
*
507 rm -f debian
/$(package_wxbase_msw_dbg
).
*
508 rm -f debian
/$(package_msw_dev
).
*
509 rm -f debian
/$(package_msw_dbg
).
*
510 rm -f debian
/$(package_headers_msw
).
*
512 install_arch
: build_arch
$(install_all_arch
)
514 install: build_all
$(install_all_native
)
516 install-wxbase-lib
: DH_OPTIONS
=-p
$(package_wxbase_lib
)
517 install-wxbase-lib
: build-wxbase-shared-stamp
522 cp
-a
$(objdir_wxbase_shared
)/lib
/* debian
/$(package_wxbase_lib
)/usr
/lib
523 cp
$(objdir_wxbase_shared
)/wxbase-
$(release
)-config debian
/$(package_wxbase_lib
)/usr
/bin
/
525 install-wxbase-dev
: DH_OPTIONS
=-p
$(package_wxbase_dev
)
526 install-wxbase-dev
: build-wxbase-static-stamp install-wxbase-lib
531 dh_movefiles
--sourcedir
=debian
/$(package_wxbase_lib
)
532 cp
$(objdir_wxbase_static
)/lib
/*.a debian
/$(package_wxbase_dev
)/usr
/lib
534 install-wxbase-dbg
: DH_OPTIONS
=-p
$(package_wxbase_dbg
)
535 install-wxbase-dbg
: build-wxbase-debug-stamp
540 cp
-a
$(objdir_wxbase_debug
)/lib
/* debian
/$(package_wxbase_dbg
)/usr
/lib
541 cp
$(objdir_wxbase_debug
)/wxbased-
$(release
)-config debian
/$(package_wxbase_dbg
)/usr
/bin
/
542 cp debian
/lintian-override debian
/$(package_wxbase_dbg
)/usr
/share
/lintian
/overrides
/$(package_wxbase_dbg
)
544 install-gtk-lib
: DH_OPTIONS
=-p
$(package_gtk_lib
)
545 install-gtk-lib
: build-gtk-shared-stamp
550 cd
$(objdir_gtk_shared
) \
551 && $(MAKE
) install prefix=`pwd`/..
/debian
/$(package_gtk_lib
)/usr
552 rm -f debian
/$(package_gtk_lib
)/usr
/bin
/wx-config
554 install-gtk-dev
: DH_OPTIONS
=-p
$(package_gtk_dev
)
555 install-gtk-dev
: build-gtk-static-stamp install-gtk-lib
560 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
561 cp
$(objdir_gtk_static
)/lib
/libwx_gtk
*.a debian
/$(package_gtk_dev
)/usr
/lib
563 install-gtk-dbg
: DH_OPTIONS
=-p
$(package_gtk_dbg
)
564 install-gtk-dbg
: build-gtk-debug-stamp
569 cp
-a
$(objdir_gtk_debug
)/lib
/* debian
/$(package_gtk_dbg
)/usr
/lib
570 cp
$(objdir_gtk_debug
)/wxgtkd-
$(release
)-config debian
/$(package_gtk_dbg
)/usr
/bin
/
571 cp debian
/lintian-override debian
/$(package_gtk_dbg
)/usr
/share
/lintian
/overrides
/$(package_gtk_dbg
)
573 install-gtk-univ
: DH_OPTIONS
=-p
$(package_gtk_univ
)
574 install-gtk-univ
: build-gtk-univ-stamp
579 cp
-a
$(objdir_gtk_univ
)/lib
/* debian
/$(package_gtk_univ
)/usr
/lib
580 cp
$(objdir_gtk_univ
)/wxgtkuniv-
$(release
)-config debian
/$(package_gtk_univ
)/usr
/bin
/
581 cp debian
/lintian-override debian
/$(package_gtk_univ
)/usr
/share
/lintian
/overrides
/$(package_gtk_univ
)
583 install-gtk-contrib
: DH_OPTIONS
=-p
$(package_gtk_contrib
)
584 install-gtk-contrib
: build-contrib-shared-stamp
589 cd
$(objdir_gtk_shared
)/contrib
/src \
590 && $(MAKE
) install prefix=`pwd`/..
/..
/..
/debian
/$(package_gtk_contrib
)/usr
592 install-gtk-contrib-dev
: DH_OPTIONS
=-p
$(package_gtk_contrib_dev
)
593 install-gtk-contrib-dev
: build-contrib-static-stamp install-gtk-dev
598 dh_movefiles
--sourcedir
=debian
/$(package_gtk_contrib
)
599 cp
$(objdir_gtk_static
)/lib
/*.a debian
/$(package_gtk_contrib_dev
)/usr
/lib
600 rm -f debian
/$(package_gtk_contrib_dev
)/usr
/lib
/libwx_gtk
*.a
602 install-gtk-py
: DH_OPTIONS
=-p
$(package_gtk_py
)
603 install-gtk-py
: build-gtk-py-stamp
609 && .
/setup.py
install --prefix=`pwd`/..
/debian
/$(package_gtk_py
)/usr
610 find debian
/$(package_gtk_py
)/usr
/lib
/$(python_dir
)/site-packages
/wxPython \
611 -name
'*.py?' -exec
rm '{}' ';'
613 install-headers
: DH_OPTIONS
=-p
$(package_headers
)
614 install-headers
: install-gtk-lib
619 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
628 install-i18n
: DH_OPTIONS
=-p
$(package_i18n
)
629 install-i18n
: build-i18n-stamp install-gtk-lib
634 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
636 install-doc
: DH_OPTIONS
=-p
$(package_doc
)
637 install-doc
: build-doc-stamp
643 install-examples
: DH_OPTIONS
=-p
$(package_examples
)
644 install-examples
: build-examples-stamp
650 install-wxbase-msw-dev
: DH_OPTIONS
=-p
$(package_wxbase_msw_dev
)
651 install-wxbase-msw-dev
: build-wxbase-msw-shared-stamp build-wxbase-msw-static-stamp
656 cp
-a
$(objdir_wxbase_msw_shared
)/lib
/* debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
657 cp
-a
$(objdir_wxbase_msw_static
)/lib
/*.a debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
658 cp
$(objdir_wxbase_msw_shared
)/wxbase-
$(release
)-$(cross_host
)-config debian
/$(package_wxbase_msw_dev
)/usr
/bin
/
659 $(cross_host
)-strip --strip-debug debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
661 install-wxbase-msw-dbg
: DH_OPTIONS
=-p
$(package_wxbase_msw_dbg
)
662 install-wxbase-msw-dbg
: build-wxbase-msw-dbg-stamp
667 cp
-a
$(objdir_wxbase_msw_dbg
)/lib
/* debian
/$(package_wxbase_msw_dbg
)/usr
/$(cross_host
)/lib
668 cp
$(objdir_wxbase_msw_dbg
)/wxbased-
$(release
)-$(cross_host
)-config debian
/$(package_wxbase_msw_dbg
)/usr
/bin
/
669 # No static lib, they're freakin' huge!
670 #$(cross_host)-strip --strip-debug debian/$(package_wxbase_msw_dbg)/usr/$(cross_host)/lib/*.a
672 install-msw-dev
: DH_OPTIONS
=-p
$(package_msw_dev
)
673 install-msw-dev
: build-msw-shared-stamp build-msw-static-stamp
678 cp
-a
$(objdir_msw_shared
)/lib
/* debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
679 cp
-a
$(objdir_msw_static
)/lib
/*.a debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
680 cp
$(objdir_msw_shared
)/wxmsw-
$(release
)-$(cross_host
)-config debian
/$(package_msw_dev
)/usr
/bin
/
681 $(cross_host
)-strip --strip-debug debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
683 install-msw-dbg
: DH_OPTIONS
=-p
$(package_msw_dbg
)
684 install-msw-dbg
: build-msw-dbg-stamp
689 cp
-a
$(objdir_msw_dbg
)/lib
/* debian
/$(package_msw_dbg
)/usr
/$(cross_host
)/lib
690 cp
$(objdir_msw_dbg
)/wxmswd-
$(release
)-$(cross_host
)-config debian
/$(package_msw_dbg
)/usr
/bin
/
691 # No static lib, they're freakin' huge!
692 #$(cross_host)-strip --strip-debug debian/$(package_msw_dbg)/usr/$(cross_host)/lib/*.a
694 install-headers-msw
: DH_OPTIONS
=-p
$(package_headers_msw
)
700 @
# Symlink all the headers that will be installed by the main -headers
701 @
# package to where the cross compiler will expect them.
702 @for f in
`ls -1 include/wx`; do \
703 ln
-s
/usr
/include/wx
/$$f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
; \
704 echo
"linking header /usr/include/wx/$$f"; \
706 @
# But install this lot for real.
707 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
/msw
708 cp
-a
include/wx
/msw debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
709 @
# and remove this cruft(?)
710 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
/treelay.h
721 @
# Don't strip debug libs at all, and strip cross libs elsewhere
722 @
# with the cross host tools until dh_strip gets smarter.
723 dh_strip
-N
$(package_gtk_dbg
) -N
$(package_wxbase_dbg
) \
724 -N
$(package_wxbase_msw_dev
) -N
$(package_wxbase_msw_dbg
) \
725 -N
$(package_msw_dev
) -N
$(package_msw_dbg
)
729 dh_makeshlibs
-N
$(package_gtk_py
) -V
731 dh_shlibdeps
-ldebian
/$(package_gtk_lib
)/usr
/lib
736 # Build architecture-independent files here.
737 # Note that you currently can't build the indep packages without first
738 # building the arch specific package files needed to create them.
739 binary-indep
: build_all
install
740 $(MAKE
) -f debian
/rules \
741 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)" \
744 # Build just the architecture-dependent files here.
745 binary-arch
: build_arch install_arch
746 $(MAKE
) -f debian
/rules \
747 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)" \
750 # Build all packages target.
751 binary
: binary-arch binary-indep
753 # This is a special target for building the wxMSW-cross packages.
754 # It's not currently called during the official package build run
755 # but may be run separately to build the extra packages.
756 # There is an implied build dep on the mingw32 cross compiler
757 # that is not in the control file.
758 binary-cross
: control-files-stamp
$(install_all_cross
)
759 $(MAKE
) -f debian
/rules \
760 DH_OPTIONS
="-p$(package_wxbase_msw_dev) -p$(package_wxbase_msw_dbg) -p$(package_msw_dev) -p$(package_msw_dbg) -p$(package_headers_msw)" \
764 ############################################################################
766 # Some rules to build a subset of the complete list of packages that can be
767 # built from CVS. Beware that packages produced with these rules may *NOT*
768 # be compatible with packages built using the 'binary' target or even with
769 # Debian policy. Do not distribute packages built with these rules, they
770 # are currently useful for rapid in-house testing by developers only.
772 # libwxgtk shared lib package
773 binary-gtk
: control-files-stamp install-gtk-lib install-headers
774 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_headers)" binary-common
776 binary-gtk-dev
: control-files-stamp install-gtk-dev install-headers
777 $(MAKE
) -f debian
/rules \
778 DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \
781 binary-gtk-dbg
: control-files-stamp install-gtk-dbg install-headers
782 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_headers)" binary-common
784 # libwxbase shared lib package
785 binary-wxbase
: control-files-stamp install-wxbase-lib install-headers
786 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_wxbase_lib) -p$(package_headers)" binary-common
788 binary-wxbase-dev
: control-files-stamp install-wxbase-dev install-headers
789 $(MAKE
) -f debian
/rules \
790 DH_OPTIONS
="-p$(package_wxbase_lib) -p$(package_wxbase_dev) -p$(package_headers)" \
793 binary-wxbase-dbg
: control-files-stamp install-wxbase-dbg install-headers
794 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_wxbase_dbg) -p$(package_headers)" binary-common
796 binary-univ
: control-files-stamp install-gtk-univ
797 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_univ)" binary-common
800 binary-doc
: control-files-stamp install-doc
801 $(MAKE
) -f debian
/rules DH_OPTIONS
=-p
$(package_doc
) binary-common
803 binary-fast
:control-files-stamp install-gtk-dbg install-msw-dev install-headers install-headers-msw
804 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_msw_dev) -p$(package_headers) -p$(package_headers_msw)" binary-common
807 .PHONY
: build build_all build_arch
clean binary-indep binary-arch binary binary-common \
808 binary-gtk binary-gtk-dev binary-gtk-dbg binary-wxbase binary-wxbase-dev \
809 binary-wxbase-dbg binary-doc binary-cross \
810 install install_arch install-wxbase-lib \
811 install-wxbase-dev install-wxbase-dbg install-gtk-lib install-gtk-dev \
812 install-gtk-dbg install-gtk-contrib install-gtk-contrib-dev \
813 install-gtk-py install-headers install-i18n install-doc install-examples \
814 install-wxbase-msw-dev install-msw-dev install-headers-msw \
815 install-wxbase-msw-dbg install-msw-dbg