]> git.saurik.com Git - wxWidgets.git/blob - debian/rules
fixed tree item size calculation (patch 922454, partially)
[wxWidgets.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules file to build packages from wx CVS source
3 #
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.
8
9 #export DH_VERBOSE=1
10 export DH_OPTIONS
11
12 release := $(shell dpkg-parsechangelog | sed -n 's/^Source: wxwidgets//p')
13 python_ver := python$(shell python -c "import sys;print sys.version[:3]")
14
15 cross_host = i586-mingw32msvc
16 cross_build = $(shell ./config.guess)
17
18 config_cache = ../config_deb.cache
19 config_cache_cross = ../config_deb_cross.cache
20
21 # Packages to build:
22 package_gtk_lib = libwxgtk$(release)
23 package_gtk_dev = libwxgtk$(release)-dev
24 package_gtk_dbg = libwxgtk$(release)-dbg
25 package_gtk_py = libwxgtk$(release)-python
26 package_gtk_contrib = libwxgtk$(release)-contrib
27 package_gtk_contrib_dev = libwxgtk$(release)-contrib-dev
28 package_headers = wx$(release)-headers
29 package_i18n = wx$(release)-i18n
30 package_doc = wx$(release)-doc
31 package_examples = wx$(release)-examples
32
33 package_msw_dev = libwxmsw$(release)-dev
34 package_msw_dbg = libwxmsw$(release)-dbg
35 package_headers_msw = wx$(release)-headers-msw
36
37 # Build directories:
38 objdir_gtk_shared = objs_gtk_sh
39 objdir_gtk_static = objs_gtk_st
40 objdir_gtk_debug = objs_gtk_d
41 objdir_gtk_install = objs_gtk_install
42 objdir_gtk_contrib_install = objs_gtk_contrib_install
43 objdir_doc_cruft = objs_doc_con
44 objdir_doc = docs/wx-manual.html
45 objdir_examples = docs/examples
46 objdir_i18n = locale
47
48 objdir_msw_shared = objs_msw_sh
49 objdir_msw_static = objs_msw_st
50 objdir_msw_dbg = objs_msw_d
51
52 objdirs = $(objdir_gtk_shared) $(objdir_gtk_static) $(objdir_gtk_debug) \
53 $(objdir_gtk_install) $(objdir_gtk_contrib_install) \
54 $(objdir_doc_cruft) $(objdir_doc) $(objdir_examples) \
55 $(objdir_msw_shared) $(objdir_msw_static) $(objdir_msw_dbg)
56
57 # note that the i18n package is actually arch indep (once built)
58 # but must be built (and installed) during the arch any phase as
59 # it's pulled out of the wxGTK shared lib package.
60
61
62 # Build stamps:
63 build_arch_stamps = build-gtk-shared-stamp build-gtk-static-stamp \
64 build-gtk-debug-stamp \
65 build-contrib-shared-stamp build-contrib-static-stamp \
66 build-i18n-stamp build-gtk-py-stamp
67
68
69 build_indep_stamps = build-examples-stamp build-doc-stamp
70
71 build_cross_stamps = build-msw-shared-stamp build-msw-static-stamp build-msw-dbg-stamp
72
73 build_stamps_native = $(build_arch_stamps) $(build_indep_stamps)
74
75 build_stamps = $(build_stamps_native) $(build_cross_stamps)
76
77
78 # Install targets:
79 install_all_arch = install-gtk-lib install-gtk-dev install-gtk-dbg \
80 install-gtk-contrib install-gtk-contrib-dev \
81 install-headers install-i18n install-gtk-py
82
83 install_all_indep = install-examples install-doc
84
85 install_all_cross = install-msw-dev install-msw-dbg install-headers-msw
86
87 install_all_native = $(install_all_arch) $(install_all_indep)
88
89 install_all = $(install_all_native) $(install_all_cross)
90
91
92 wxconfig := $(shell pwd)/$(objdir_gtk_shared)/wx-config \
93 --prefix=$(shell pwd) \
94 --exec-prefix=$(shell pwd)/$(objdir_gtk_shared)
95
96 contrib_libs := $(subst CVS,,$(notdir $(wildcard contrib/include/wx/*)))
97
98
99 # The Rules:
100
101 debian/control: debian/control.in
102 sed -e 's/=V/$(release)/g;s/=PY/$(python_ver)/g' < debian/control.in > debian/control
103
104 control-files-stamp: debian/control
105 dh_testdir
106 @for f in links postinst prerm; do \
107 echo "generating control file $(package_gtk_dev).$$f"; \
108 sed -e 's/=V/$(release)/g' < debian/libwxgtk-dev.$$f \
109 > debian/$(package_gtk_dev).$$f; \
110 done;
111 @for f in links postinst prerm; do \
112 echo "generating control file $(package_gtk_dbg).$$f"; \
113 sed -e 's/=V/$(release)/g' < debian/libwxgtk-dbg.$$f \
114 > debian/$(package_gtk_dbg).$$f; \
115 done;
116 @for f in dirs docs menu postinst prerm; do \
117 echo "generating control file $(package_gtk_py).$$f"; \
118 sed -e 's/=PY/$(python_ver)/g;s/=V/$(release)/g' \
119 < debian/libwxgtk-python.$$f \
120 > debian/$(package_gtk_py).$$f; \
121 done;
122 @for f in docs doc-base; do \
123 echo "generating control file $(package_doc).$$f"; \
124 sed -e 's/=V/$(release)/g' < debian/wx-doc.$$f \
125 > debian/$(package_doc).$$f; \
126 done;
127 @for f in examples; do \
128 echo "generating control file $(package_examples).$$f"; \
129 cp debian/wx-examples.$$f debian/$(package_examples).$$f; \
130 done;
131 @for f in dirs links postinst prerm; do \
132 echo "generating control file $(package_msw_dev).$$f"; \
133 sed -e 's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian/libwxmsw-dev.$$f \
134 > debian/$(package_msw_dev).$$f; \
135 done;
136 @for f in dirs links postinst prerm; do \
137 echo "generating control file $(package_msw_dbg).$$f"; \
138 sed -e 's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian/libwxmsw-dbg.$$f \
139 > debian/$(package_msw_dbg).$$f; \
140 done;
141 @for f in dirs; do \
142 echo "generating control file $(package_headers_msw).$$f"; \
143 sed -e 's/=H/$(cross_host)/g' < debian/wx-headers-msw.$$f \
144 > debian/$(package_headers_msw).$$f; \
145 done;
146 touch $@
147
148 build_arch: control-files-stamp $(build_arch_stamps)
149 build_all: control-files-stamp $(build_stamps_native)
150
151 # Really we should probably do nothing here until we know which
152 # binary target is being called, but alpha builds were exploding
153 # (compiler segfaults) in random places when building under fakeroot
154 # from the binary-arch target. Build all -arch files here then, and
155 # let the -indep stuff fend for itself later.
156
157 build: build_arch
158
159
160 configure-gtk-shared-stamp:
161 dh_testdir
162 mkdir -p $(objdir_gtk_shared)
163 cd $(objdir_gtk_shared) \
164 && ../configure --prefix=/usr \
165 --cache-file=$(config_cache) \
166 --with-gtk \
167 --enable-gtk2 \
168 --enable-unicode \
169 --with-opengl \
170 --enable-soname \
171 --with-zlib=sys \
172 --with-libjpeg=sys \
173 --with-libpng=sys \
174 --with-libtiff=sys \
175 --enable-dynamic-loader \
176 --enable-std_iostreams
177 touch $@
178
179 build-gtk-shared-stamp: configure-gtk-shared-stamp
180 dh_testdir
181 cd $(objdir_gtk_shared) && $(MAKE)
182 touch $@
183
184 configure-gtk-static-stamp:
185 dh_testdir
186 mkdir -p $(objdir_gtk_static)
187 cd $(objdir_gtk_static) \
188 && ../configure --prefix=/usr \
189 --cache-file=$(config_cache) \
190 --with-gtk \
191 --enable-gtk2 \
192 --enable-unicode \
193 --with-opengl \
194 --disable-shared \
195 --with-zlib=sys \
196 --with-libjpeg=sys \
197 --with-libpng=sys \
198 --with-libtiff=sys \
199 --enable-dynamic-loader \
200 --enable-std_iostreams
201 touch $@
202
203 build-gtk-static-stamp: configure-gtk-static-stamp
204 dh_testdir
205 cd $(objdir_gtk_static) && $(MAKE)
206 touch $@
207
208 configure-gtk-debug-stamp:
209 dh_testdir
210 mkdir -p $(objdir_gtk_debug)
211 cd $(objdir_gtk_debug) \
212 && ../configure --prefix=/usr \
213 --cache-file=$(config_cache) \
214 --with-gtk \
215 --enable-gtk2 \
216 --enable-unicode \
217 --with-opengl \
218 --enable-debug \
219 --enable-soname \
220 --with-zlib=sys \
221 --with-libjpeg=sys \
222 --with-libpng=sys \
223 --with-libtiff=sys \
224 --enable-dynamic-loader \
225 --enable-std_iostreams
226 touch $@
227
228 build-gtk-debug-stamp: configure-gtk-debug-stamp
229 dh_testdir
230 cd $(objdir_gtk_debug) && $(MAKE)
231 touch $@
232
233
234 build-contrib-shared-stamp: build-gtk-shared-stamp
235 dh_testdir
236 cd $(objdir_gtk_shared)/contrib/src && $(MAKE)
237 touch $@
238
239 build-contrib-static-stamp: build-gtk-static-stamp
240 dh_testdir
241 cd $(objdir_gtk_static)/contrib/src && $(MAKE)
242 touch $@
243
244 build-gtk-py-stamp: build-gtk-shared-stamp
245 dh_testdir
246 touch docs/lgpl.txt
247 cd wxPython/include/wx \
248 && for f in $(contrib_libs); do \
249 $(RM) $$f; \
250 ln -s ../../../contrib/include/wx/$$f .; \
251 done
252 cd wxPython \
253 && $(python_ver) ./setup.py build \
254 WX_CONFIG='$(wxconfig)' \
255 WXPORT=gtk2 \
256 UNICODE=1
257 cd wxPython/include/wx \
258 && for f in $(contrib_libs); do $(RM) $$f; done
259
260 touch $@
261
262 build-doc-stamp: build-gtk-shared-stamp
263 dh_testdir
264 cd $(objdir_gtk_shared)/utils/tex2rtf/src \
265 && $(MAKE)
266 rm -rf $(objdir_doc)
267 rm -rf $(objdir_doc_cruft)
268 mkdir $(objdir_doc)
269 mkdir $(objdir_doc_cruft)
270 cd $(objdir_doc_cruft) \
271 && LD_LIBRARY_PATH=../$(objdir_gtk_shared)/lib:$(LD_LIBRARY_PATH) \
272 ../$(objdir_gtk_shared)/utils/tex2rtf/src/tex2rtf \
273 ../docs/latex/wx/manual.tex ../$(objdir_doc)/wxwin.htm -twice -html
274 cp docs/latex/wx/*.gif $(objdir_doc)
275 rm -rf $(objdir_doc_cruft)
276 rm -f $(objdir_doc)/wxwin.con $(objdir_doc)/wxwin.hh* \
277 $(objdir_doc)/wxwin.htx $(objdir_doc)/wxwin.ref
278 touch $@
279
280 build-examples-stamp: build-gtk-shared-stamp
281 dh_testdir
282 mkdir -p $(objdir_examples)
283
284 # copy all samples and the Makefile generated for libwxgtk.
285 cp -a samples $(objdir_examples)
286 rm -f $(objdir_examples)/samples/Makefile
287 cp -a $(objdir_gtk_shared)/samples/Makefile $(objdir_examples)/samples
288
289 cd $(objdir_examples)/samples \
290 && find -name 'Makefile.in' -exec rm -f '{}' ';' \
291 && for d in $$(find -type d); do \
292 if [ -f $$d/makefile.unx ]; then \
293 mv $$d/makefile.unx $$d/Makefile; \
294 fi; \
295 done \
296
297 cp -a wxPython/demo $(objdir_examples)/wxPython
298
299 touch $@
300
301 build-i18n-stamp: build-gtk-shared-stamp
302 dh_testdir
303
304 # touch .po files first, since if they are not already up
305 # to date then _now_ is not the time to fix it.
306 # That should have been been done before cvs was tagged.
307 cd $(objdir_i18n) \
308 && touch *.po \
309 && $(MAKE) allmo
310 touch $@
311
312
313 configure-msw-shared-stamp:
314 dh_testdir
315 mkdir -p $(objdir_msw_shared)
316 cd $(objdir_msw_shared) \
317 && ../configure --prefix=/usr/$(cross_host) \
318 --cache-file=$(config_cache_cross) \
319 --host=$(cross_host) \
320 --build=$(cross_build)
321 touch $@
322
323 build-msw-shared-stamp: configure-msw-shared-stamp
324 dh_testdir
325 cd $(objdir_msw_shared) && $(MAKE)
326 touch $@
327
328 configure-msw-static-stamp:
329 dh_testdir
330 mkdir -p $(objdir_msw_static)
331 cd $(objdir_msw_static) \
332 && ../configure --prefix=/usr/$(cross_host) \
333 --cache-file=$(config_cache_cross) \
334 --host=$(cross_host) \
335 --build=$(cross_build) \
336 --disable-shared
337 touch $@
338
339 build-msw-static-stamp: configure-msw-static-stamp
340 dh_testdir
341 cd $(objdir_msw_static) && $(MAKE)
342 touch $@
343
344 configure-msw-dbg-stamp:
345 dh_testdir
346 mkdir -p $(objdir_msw_dbg)
347 cd $(objdir_msw_dbg) \
348 && ../configure --prefix=/usr/$(cross_host) \
349 --cache-file=$(config_cache_cross) \
350 --host=$(cross_host) \
351 --build=$(cross_build) \
352 --enable-debug
353 touch $@
354
355 build-msw-dbg-stamp: configure-msw-dbg-stamp
356 dh_testdir
357 cd $(objdir_msw_dbg) && $(MAKE)
358 touch $@
359
360
361 clean: debian/control
362 dh_testdir
363 dh_testroot
364
365 rm -rf config_deb.cache config_deb_cross.cache *-stamp $(objdirs)
366 rm -f docs/lgpl.txt
367 rm -f docs/latex/wx/manual.bb
368 rm -f $(objdir_i18n)/*.mo
369
370 cd wxPython \
371 && rm -rf licence \
372 && rm -rf build \
373 && rm -rf contrib/gizmos/contrib \
374 && rm -rf contrib/ogl/contrib \
375 && rm -rf contrib/stc/contrib \
376 && rm -rf contrib/xrc/contrib \
377 && rm -rf *.pyc
378
379 cd wxPython/include/wx \
380 && for f in $(contrib_libs); do $(RM) $$f; done
381
382 # We do the equivalent of this above by removing build, unfortunately
383 # its not enough by itself to get the tree properly clean again.
384 # && ./setup.py clean
385
386 dh_clean
387 rm -f debian/$(package_gtk_lib).*
388 rm -f debian/$(package_gtk_dev).*
389 rm -f debian/$(package_gtk_dbg).*
390 rm -f debian/$(package_gtk_py).*
391 rm -f debian/$(package_gtk_contrib).*
392 rm -f debian/$(package_gtk_contrib_dev).*
393 rm -f debian/$(package_headers).*
394 rm -f debian/$(package_i18n).*
395 rm -f debian/$(package_doc).*
396 rm -f debian/$(package_examples).*
397 rm -f debian/$(package_msw_dev).*
398 rm -f debian/$(package_msw_dbg).*
399 rm -f debian/$(package_headers_msw).*
400
401 install_arch: build_arch $(install_all_arch)
402
403 install: build_all $(install_all_native)
404
405 install-gtk-shared-stamp:
406 dh_testdir
407 mkdir -p $(objdir_gtk_install)
408 cd $(objdir_gtk_shared) \
409 && $(MAKE) install prefix=`pwd`/../$(objdir_gtk_install)
410 touch $@
411
412 install-gtk-lib: DH_OPTIONS=-p$(package_gtk_lib)
413 install-gtk-lib: build-gtk-shared-stamp install-gtk-shared-stamp
414 dh_testdir
415 dh_testroot
416 dh_clean -k
417 dh_installdirs
418 dh_install $(objdir_gtk_install)/share/wx usr/share
419 dh_install $(objdir_gtk_install)/lib/*.so.* usr/lib
420
421 install-gtk-dev: DH_OPTIONS=-p$(package_gtk_dev)
422 install-gtk-dev: build-gtk-static-stamp install-gtk-shared-stamp
423 dh_testdir
424 dh_testroot
425 dh_clean -k
426 dh_installdirs
427 dh_install $(objdir_gtk_install)/bin/wxgtk2u-$(release)-config usr/bin
428 dh_install $(objdir_gtk_install)/lib/{wx,*.so} usr/lib
429 dh_install $(objdir_gtk_static)/lib/libwx_gtk2u{-,_gl}*.a usr/lib
430
431 install-gtk-dbg: DH_OPTIONS=-p$(package_gtk_dbg)
432 install-gtk-dbg: build-gtk-debug-stamp
433 dh_testdir
434 dh_testroot
435 dh_clean -k
436 dh_installdirs usr/share/lintian/overrides
437 dh_install $(objdir_gtk_debug)/wxgtk2ud-$(release)-config usr/bin
438 dh_install $(objdir_gtk_debug)/lib usr
439 cp debian/lintian-override debian/$(package_gtk_dbg)/usr/share/lintian/overrides/$(package_gtk_dbg)
440
441
442 install-gtk-contrib-stamp:
443 dh_testdir
444 mkdir -p $(objdir_gtk_contrib_install)/lib
445 cd $(objdir_gtk_shared)/contrib/src \
446 && $(MAKE) install prefix=`pwd`/../../../$(objdir_gtk_contrib_install)
447 touch $@
448
449 install-gtk-contrib: DH_OPTIONS=-p$(package_gtk_contrib)
450 install-gtk-contrib: build-contrib-shared-stamp install-gtk-contrib-stamp
451 dh_testdir
452 dh_testroot
453 dh_clean -k
454 dh_installdirs
455 dh_install $(objdir_gtk_contrib_install)/lib/*.so.* usr/lib
456
457 install-gtk-contrib-dev: DH_OPTIONS=-p$(package_gtk_contrib_dev)
458 install-gtk-contrib-dev: build-contrib-static-stamp install-gtk-contrib-stamp
459 dh_testdir
460 dh_testroot
461 dh_clean -k
462 dh_installdirs
463 dh_install $(objdir_gtk_contrib_install)/include usr
464 dh_install $(objdir_gtk_contrib_install)/lib/*.so usr/lib
465 dh_install -Xlibwx_gtk2u- -Xlibwx_gtk2u_gl- \
466 $(objdir_gtk_static)/lib/*.a usr/lib
467
468 install-gtk-py: DH_OPTIONS=-p$(package_gtk_py)
469 install-gtk-py: build-gtk-py-stamp
470 dh_testdir
471 dh_testroot
472 dh_clean -k
473 dh_installdirs
474 cd wxPython \
475 && $(python_ver) ./setup.py install \
476 --prefix=`pwd`/../debian/$(package_gtk_py)/usr \
477 WX_CONFIG='$(wxconfig)' \
478 WXPORT=gtk2 \
479 UNICODE=1
480
481 find debian/$(package_gtk_py)/usr/lib/$(python_ver)/site-packages/wxPython \
482 -name '*.py?' -exec rm '{}' ';'
483
484 dh_installman debian/wxPython-tools.1
485 dh_link usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/img2py.1 \
486 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/img2xpm.1 \
487 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/img2png.1 \
488 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pycrust.1 \
489 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pyshell.1 \
490 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/xrced.1 \
491 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/helpviewer.1 \
492 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pyalacarte.1 \
493 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pyalamode.1 \
494 usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pywrap.1
495
496 # This is rather bogus, its included in the main copyright file now though.
497 rm -f debian/$(package_gtk_py)/usr/lib/$(python_ver)/site-packages/wx/tools/XRCed/license.txt
498
499 install-headers: DH_OPTIONS=-p$(package_headers)
500 install-headers: install-gtk-shared-stamp
501 dh_testdir
502 dh_testroot
503 dh_clean -k
504 dh_installdirs
505
506 # The only way to be really sure we get the univ headers correct is to install
507 # them. Do that in a scratch dirs, and move the gtk ones last, so at least
508 # they win in the result of any uncaught conflict.
509
510 # cd $(objdir_gtk_univ) \
511 # && $(MAKE) install prefix=`pwd`/../$(objdir_univ_install)/usr
512
513 # dh_movefiles --sourcedir=$(objdir_univ_install)
514 dh_install $(objdir_gtk_install)/include usr
515 dh_install $(objdir_gtk_install)/share/aclocal usr/share
516
517 dh_installman debian/wx-config.1
518
519 install-i18n: DH_OPTIONS=-p$(package_i18n)
520 install-i18n: build-i18n-stamp install-gtk-shared-stamp
521 dh_testdir
522 dh_testroot
523 dh_clean -k
524 dh_installdirs
525 dh_install $(objdir_gtk_install)/share/locale usr/share
526
527 install-doc: DH_OPTIONS=-p$(package_doc)
528 install-doc: build-doc-stamp
529 dh_testdir
530 dh_testroot
531 dh_clean -k
532 dh_installdirs
533
534 install-examples: DH_OPTIONS=-p$(package_examples)
535 install-examples: build-examples-stamp
536 dh_testdir
537 dh_testroot
538 dh_clean -k
539 dh_installdirs
540
541
542 install-msw-dev: DH_OPTIONS=-p$(package_msw_dev)
543 install-msw-dev: build-msw-shared-stamp build-msw-static-stamp
544 dh_testdir
545 dh_testroot
546 dh_clean -k
547 dh_installdirs
548 cp -a $(objdir_msw_shared)/lib/* debian/$(package_msw_dev)/usr/$(cross_host)/lib
549 cp -a $(objdir_msw_static)/lib/*.a debian/$(package_msw_dev)/usr/$(cross_host)/lib
550 cp $(objdir_msw_shared)/wxmsw-$(release)-$(cross_host)-config debian/$(package_msw_dev)/usr/bin/
551 $(cross_host)-strip --strip-debug debian/$(package_msw_dev)/usr/$(cross_host)/lib/*.a
552
553 install-msw-dbg: DH_OPTIONS=-p$(package_msw_dbg)
554 install-msw-dbg: build-msw-dbg-stamp
555 dh_testdir
556 dh_testroot
557 dh_clean -k
558 dh_installdirs
559 cp -a $(objdir_msw_dbg)/lib/* debian/$(package_msw_dbg)/usr/$(cross_host)/lib
560 cp $(objdir_msw_dbg)/wxmswd-$(release)-$(cross_host)-config debian/$(package_msw_dbg)/usr/bin/
561 # No static lib, they're freakin' huge!
562 #$(cross_host)-strip --strip-debug debian/$(package_msw_dbg)/usr/$(cross_host)/lib/*.a
563
564 install-headers-msw: DH_OPTIONS=-p$(package_headers_msw)
565 install-headers-msw:
566 dh_testdir
567 dh_testroot
568 dh_clean -k
569 dh_installdirs
570 @# Symlink all the headers that will be installed by the main -headers
571 @# package to where the cross compiler will expect them.
572 @for f in `ls -1 include/wx`; do \
573 ln -s /usr/include/wx/$$f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx; \
574 echo "linking header /usr/include/wx/$$f"; \
575 done;
576 @# But install this lot for real.
577 rm -f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx/msw
578 cp -a include/wx/msw debian/$(package_headers_msw)/usr/$(cross_host)/include/wx
579 @# and remove this cruft(?)
580 rm -f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx/treelay.h
581
582
583 binary-common:
584 dh_testdir
585 dh_testroot
586 dh_installdocs
587 dh_installchangelogs
588 dh_installexamples
589 dh_installmenu
590 dh_link
591
592 @# Don't strip debug libs at all, and strip cross libs elsewhere
593 @# with the cross host tools until dh_strip gets smarter.
594 dh_strip -N$(package_gtk_dbg) -N$(package_msw_dev) -N$(package_msw_dbg)
595
596 dh_compress
597 dh_fixperms
598 dh_makeshlibs -N$(package_gtk_py) -V
599 dh_installdeb
600 dh_shlibdeps -ldebian/$(package_gtk_lib)/usr/lib:debian/$(package_gtk_dbg)/usr/lib:debian/$(package_gtk_contrib)/usr/lib
601 dh_gencontrol
602 dh_md5sums
603 dh_builddeb
604
605 # Build architecture-independent files here.
606 # Note that you currently can't build the indep packages without first
607 # building the arch specific package files needed to create them.
608 binary-indep: build_all install
609 $(MAKE) -f debian/rules \
610 DH_OPTIONS="-i -N$(package_msw_dev) -N$(package_msw_dbg) -N$(package_headers_msw)" \
611 binary-common
612
613 # Build just the architecture-dependent files here.
614 binary-arch: build_arch install_arch
615 $(MAKE) -f debian/rules \
616 DH_OPTIONS="-a -N$(package_msw_dev) -N$(package_msw_dbg) -N$(package_headers_msw)" \
617 binary-common
618
619 # Build all packages target.
620 binary: binary-arch binary-indep
621
622 # This is a special target for building the wxMSW-cross packages.
623 # It's not currently called during the official package build run
624 # but may be run separately to build the extra packages.
625 # There is an implied build dep on the mingw32 cross compiler
626 # that is not in the control file.
627 binary-cross: control-files-stamp $(install_all_cross)
628 $(MAKE) -f debian/rules \
629 DH_OPTIONS="-p$(package_msw_dev) -p$(package_msw_dbg) -p$(package_headers_msw)" \
630 binary-common
631
632
633 ############################################################################
634 #
635 # Some rules to build a subset of the complete list of packages that can be
636 # built from CVS. Beware that packages produced with these rules may *NOT*
637 # be compatible with packages built using the 'binary' target or even with
638 # Debian policy. Do not distribute packages built with these rules, they
639 # are currently useful for rapid in-house testing by developers only.
640
641 # libwxgtk shared lib package
642 binary-gtk: control-files-stamp install-gtk-lib install-headers
643 $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_lib) -p$(package_headers)" binary-common
644
645 binary-gtk-dev: control-files-stamp install-gtk-dev install-headers
646 $(MAKE) -f debian/rules \
647 DH_OPTIONS="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \
648 binary-common
649
650 binary-gtk-dbg: control-files-stamp install-gtk-dbg install-headers
651 $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_dbg) -p$(package_headers)" binary-common
652
653
654 # docs package
655 binary-doc: control-files-stamp install-doc
656 $(MAKE) -f debian/rules DH_OPTIONS=-p$(package_doc) binary-common
657
658 binary-fast:control-files-stamp install-gtk-dbg install-msw-dev install-headers install-headers-msw
659 $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_dbg) -p$(package_msw_dev) -p$(package_headers) -p$(package_headers_msw)" binary-common
660
661
662 .PHONY: build build_all build_arch clean binary-indep binary-arch binary binary-common \
663 binary-gtk binary-gtk-dev binary-gtk-dbg binary-doc binary-cross \
664 install install_arch install-gtk-lib install-gtk-dev \
665 install-gtk-dbg install-gtk-contrib install-gtk-contrib-dev \
666 install-gtk-py install-headers install-i18n install-doc install-examples \
667 install-msw-dev install-msw-dbg install-headers-msw
668