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
)
20 package_wxbase_lib
=libwxbase
$(release
)
21 package_wxbase_dev
=libwxbase
$(release
)-dev
22 package_wxbase_dbg
=libwxbase
$(release
)-dbg
23 package_gtk_lib
=libwxgtk
$(release
)
24 package_gtk_dev
=libwxgtk
$(release
)-dev
25 package_gtk_dbg
=libwxgtk
$(release
)-dbg
26 package_gtk_py
=libwxgtk
$(release
)-python
27 package_gtk_contrib
=libwxgtk
$(release
)-contrib
28 package_gtk_contrib_dev
=libwxgtk
$(release
)-contrib-dev
29 package_headers
=wxwin
$(release
)-headers
30 package_i18n
=wxwin
$(release
)-i18n
31 package_doc
=wxwin
$(release
)-doc
32 package_examples
=wxwin
$(release
)-examples
34 package_gtk_univ
=libwxgtk
$(release
)-univ
36 package_wxbase_msw_dev
=libwxbase-msw
$(release
)-dev
37 package_msw_dev
=libwxmsw
$(release
)-dev
38 package_headers_msw
=wxwin
$(release
)-headers-msw
41 objdir_wxbase_shared
=objs_wxbase_sh
42 objdir_wxbase_static
=objs_wxbase_st
43 objdir_wxbase_debug
=objs_wxbase_d
44 objdir_gtk_shared
=objs_gtk_sh
45 objdir_gtk_static
=objs_gtk_st
46 objdir_gtk_debug
=objs_gtk_d
47 objdir_doc_cruft
=objs_doc_con
48 objdir_doc
=docs
/wxWindows-manual.html
49 objdir_examples
=docs
/examples
52 objdir_gtk_univ
=objs_gtk_univ
54 objdir_wxbase_msw_static
=objs_wxbase_msw_st
55 objdir_msw_static
=objs_msw_st
57 objdirs
=$(objdir_wxbase_shared
) $(objdir_wxbase_static
) $(objdir_wxbase_debug
) \
58 $(objdir_gtk_shared
) $(objdir_gtk_static
) $(objdir_gtk_debug
) $(objdir_gtk_univ
) \
59 $(objdir_doc_cruft
) $(objdir_doc
) $(objdir_examples
) \
60 $(objdir_wxbase_msw_static
) $(objdir_msw_static
)
62 # note that the i18n package is actually arch indep (once built)
63 # but must be built (and installed) during the arch any phase as
64 # it's pulled out of the wxGtk shared lib package.
67 build_arch_stamps
=build-wxbase-shared-stamp build-wxbase-static-stamp \
68 build-wxbase-debug-stamp build-gtk-shared-stamp \
69 build-gtk-static-stamp build-gtk-debug-stamp \
70 build-gtk-univ-stamp \
71 build-contrib-shared-stamp build-contrib-static-stamp \
72 build-gtk-py-stamp build-i18n-stamp
74 build_indep_stamps
=build-examples-stamp build-doc-stamp
76 build_cross_stamps
=build-wxbase-msw-dev-stamp build-msw-dev-stamp
78 build_stamps_native
=$(build_arch_stamps
) $(build_indep_stamps
)
80 build_stamps
=$(build_stamps_native
) $(build_cross_stamps
)
83 install_all_arch
=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \
84 install-gtk-lib install-gtk-dev install-gtk-dbg \
86 install-gtk-contrib install-gtk-contrib-dev install-gtk-py \
87 install-headers install-i18n
89 install_all_indep
=install-examples install-doc
91 install_all_cross
=install-wxbase-msw-dev install-msw-dev install-headers-msw
93 install_all_native
=$(install_all_arch
) $(install_all_indep
)
95 install_all
=$(install_all_native
) $(install_all_cross
)
98 wxconfig
:=$(shell pwd
)/$(objdir_gtk_shared
)/wx-config \
99 --prefix=$(shell pwd
) \
100 --exec-prefix
=$(shell pwd
)/$(objdir_gtk_shared
)
105 debian
/control
: debian
/control.in
106 sed
-e
's/=V/$(release)/g' < debian
/control.in
> debian
/control
108 control-files-stamp
: debian
/control
110 @for f in dirs postinst
; do \
111 echo
"generating control file $(package_wxbase_lib).$$f"; \
112 cp debian
/libwxbase.
$$f debian
/$(package_wxbase_lib
).
$$f; \
114 @for f in dirs files links postinst prerm
; do \
115 echo
"generating control file $(package_wxbase_dev).$$f"; \
116 sed
-e
's/=V/$(release)/g' < debian
/libwxbase-dev.
$$f \
117 > debian
/$(package_wxbase_dev
).
$$f; \
119 @for f in dirs links postinst prerm
; do \
120 echo
"generating control file $(package_wxbase_dbg).$$f"; \
121 sed
-e
's/=V/$(release)/g' < debian
/libwxbase-dbg.
$$f \
122 > debian
/$(package_wxbase_dbg
).
$$f; \
124 @for f in dirs postinst
; do \
125 echo
"generating control file $(package_gtk_lib).$$f"; \
126 cp debian
/libwxgtk.
$$f debian
/$(package_gtk_lib
).
$$f; \
128 @for f in dirs files links postinst prerm
; do \
129 echo
"generating control file $(package_gtk_dev).$$f"; \
130 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-dev.
$$f \
131 > debian
/$(package_gtk_dev
).
$$f; \
133 @for f in dirs links postinst prerm
; do \
134 echo
"generating control file $(package_gtk_dbg).$$f"; \
135 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-dbg.
$$f \
136 > debian
/$(package_gtk_dbg
).
$$f; \
138 @for f in dirs links postinst prerm
; do \
139 echo
"generating control file $(package_gtk_univ).$$f"; \
140 sed
-e
's/=V/$(release)/g' < debian
/libwxgtk-univ.
$$f \
141 > debian
/$(package_gtk_univ
).
$$f; \
143 @for f in dirs docs files postinst prerm
; do \
144 echo
"generating control file $(package_gtk_py).$$f"; \
145 sed
-e
's/=PY/$(python_dir)/g;s/=V/$(release)/g' < debian
/libwxgtk-python.
$$f \
146 > debian
/$(package_gtk_py
).
$$f; \
148 @for f in dirs postinst
; do \
149 echo
"generating control file $(package_gtk_contrib).$$f"; \
150 cp debian
/libwxgtk-contrib.
$$f debian
/$(package_gtk_contrib
).
$$f; \
152 @for f in dirs files
; do \
153 echo
"generating control file $(package_gtk_contrib_dev).$$f"; \
154 cp debian
/libwxgtk-contrib-dev.
$$f debian
/$(package_gtk_contrib_dev
).
$$f; \
156 @for f in dirs files
; do \
157 echo
"generating control file $(package_headers).$$f"; \
158 cp debian
/wxwin-headers.
$$f debian
/$(package_headers
).
$$f; \
160 @for f in dirs files
; do \
161 echo
"generating control file $(package_i18n).$$f"; \
162 cp debian
/wxwin-i18n.
$$f debian
/$(package_i18n
).
$$f; \
164 @for f in dirs docs doc-base
; do \
165 echo
"generating control file $(package_doc).$$f"; \
166 sed
-e
's/=V/$(release)/g' < debian
/wxwin-doc.
$$f \
167 > debian
/$(package_doc
).
$$f; \
169 @for f in examples
; do \
170 echo
"generating control file $(package_examples).$$f"; \
171 cp debian
/wxwin-examples.
$$f debian
/$(package_examples
).
$$f; \
173 @for f in dirs links postinst prerm
; do \
174 echo
"generating control file $(package_wxbase_msw_dev).$$f"; \
175 sed
-e
's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian
/libwxbase-msw-dev.
$$f \
176 > debian
/$(package_wxbase_msw_dev
).
$$f; \
178 @for f in dirs links postinst prerm
; do \
179 echo
"generating control file $(package_msw_dev).$$f"; \
180 sed
-e
's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian
/libwxmsw-dev.
$$f \
181 > debian
/$(package_msw_dev
).
$$f; \
184 echo
"generating control file $(package_headers_msw).$$f"; \
185 sed
-e
's/=H/$(cross_host)/g' < debian
/wxwin-headers-msw.
$$f \
186 > debian
/$(package_headers_msw
).
$$f; \
190 build_arch
: control-files-stamp
$(build_arch_stamps
)
191 build_all
: control-files-stamp
$(build_stamps_native
)
193 # Really we should probably do nothing here until we know which
194 # binary target is being called, but alpha builds were exploding
195 # (compiler segfaults) in random places when building under fakeroot
196 # from the binary-arch target. Build all -arch files here then, and
197 # let the -indep stuff fend for itself later.
202 build-wxbase-shared-stamp
:
204 mkdir
-p
$(objdir_wxbase_shared
)
205 cd
$(objdir_wxbase_shared
) \
206 && ..
/configure
--prefix=/usr \
207 --cache-file
=..
/config_deb.cache \
214 build-wxbase-static-stamp
:
216 mkdir
-p
$(objdir_wxbase_static
)
217 cd
$(objdir_wxbase_static
) \
218 && ..
/configure
--prefix=/usr \
219 --cache-file
=..
/config_deb.cache \
226 build-wxbase-debug-stamp
:
228 mkdir
-p
$(objdir_wxbase_debug
)
229 cd
$(objdir_wxbase_debug
) \
230 && ..
/configure
--prefix=/usr \
231 --cache-file
=..
/config_deb.cache \
239 build-gtk-shared-stamp
:
241 mkdir
-p
$(objdir_gtk_shared
)
242 cd
$(objdir_gtk_shared
) \
243 && ..
/configure
--prefix=/usr \
244 --cache-file
=..
/config_deb.cache \
255 build-gtk-static-stamp
:
257 mkdir
-p
$(objdir_gtk_static
)
258 cd
$(objdir_gtk_static
) \
259 && ..
/configure
--prefix=/usr \
260 --cache-file
=..
/config_deb.cache \
271 build-gtk-debug-stamp
:
273 mkdir
-p
$(objdir_gtk_debug
)
274 cd
$(objdir_gtk_debug
) \
275 && ..
/configure
--prefix=/usr \
276 --cache-file
=..
/config_deb.cache \
288 build-gtk-univ-stamp
:
290 mkdir
-p
$(objdir_gtk_univ
)
291 cd
$(objdir_gtk_univ
) \
292 && ..
/configure
--prefix=/usr \
293 --cache-file
=..
/config_deb.cache \
305 build-contrib-shared-stamp
: build-gtk-shared-stamp
307 cd
$(objdir_gtk_shared
)/contrib
/src \
311 build-contrib-static-stamp
: build-gtk-static-stamp
313 cd
$(objdir_gtk_static
)/contrib
/src \
317 build-gtk-py-stamp
: build-gtk-shared-stamp
321 && .
/setup.py build IN_CVS_TREE
=1 WX_CONFIG
='$(wxconfig)'
324 build-doc-stamp
: build-gtk-shared-stamp
326 cd
$(objdir_gtk_shared
)/utils
/tex2rtf
/src \
329 mkdir
$(objdir_doc_cruft
)
330 cd
$(objdir_doc_cruft
) \
331 && LD_LIBRARY_PATH
=..
/$(objdir_gtk_shared
)/lib
:$(LD_LIBRARY_PATH
) \
332 ..
/$(objdir_gtk_shared
)/utils
/tex2rtf
/src
/tex2rtf \
333 ..
/docs
/latex
/wx
/manual.
tex ..
/$(objdir_doc
)/wxwin.htm
-twice
-html
334 cp docs
/latex
/wx
/*.gif
$(objdir_doc
)
335 rm -rf
$(objdir_doc_cruft
)
336 rm -f
$(objdir_doc
)/wxwin.con
$(objdir_doc
)/wxwin.hh
* \
337 $(objdir_doc
)/wxwin.htx
$(objdir_doc
)/wxwin.ref
340 build-examples-stamp
: build-gtk-shared-stamp
342 mkdir
-p
$(objdir_examples
)
344 # copy all samples and the Makefile generated for libwxgtk.
345 cp
-a samples
$(objdir_examples
)
346 rm -f
$(objdir_examples
)/samples
/Makefile
347 cp
-a
$(objdir_gtk_shared
)/samples
/Makefile
$(objdir_examples
)/samples
349 cp
-a demos
$(objdir_examples
)
350 cp
-a wxPython
/demo
$(objdir_examples
)/wxPython
351 @for d in
$(objdir_examples
)/demos
$(objdir_examples
)/samples
; do \
353 && mv Makefile.in Makefile \
354 && rm -f configure
* \
355 && find
-name
'Makefile.in' -exec
rm -f
'{}' ';' \
356 && for f in
$$(find
-type d
); do \
357 if
[ -f
$$f/makefile.unx
]; then \
358 mv
$$f/makefile.unx
$$f/Makefile
; \
364 build-i18n-stamp
: build-gtk-shared-stamp
370 build-wxbase-msw-dev-stamp
:
372 mkdir
-p
$(objdir_wxbase_msw_static
)
373 cd
$(objdir_wxbase_msw_static
) \
374 && ..
/configure
--prefix=/usr
/$(cross_host
) \
375 --cache-file
=..
/config_deb.cache \
376 --host
=$(cross_host
) \
377 --build
=$(cross_build
) \
385 mkdir
-p
$(objdir_msw_static
)
386 cd
$(objdir_msw_static
) \
387 && ..
/configure
--prefix=/usr
/$(cross_host
) \
388 --cache-file
=..
/config_deb.cache \
389 --host
=$(cross_host
) \
390 --build
=$(cross_build
) \
397 clean: debian
/control
400 rm -rf config_deb.cache control-files-stamp
$(build_stamps
) $(objdirs
)
402 cd wxPython
&& .
/setup.py
clean
404 rm -f debian
/$(package_wxbase_lib
).
*
405 rm -f debian
/$(package_wxbase_dev
).
*
406 rm -f debian
/$(package_wxbase_dbg
).
*
407 rm -f debian
/$(package_gtk_lib
).
*
408 rm -f debian
/$(package_gtk_dev
).
*
409 rm -f debian
/$(package_gtk_dbg
).
*
410 rm -f debian
/$(package_gtk_univ
).
*
411 rm -f debian
/$(package_gtk_py
).
*
412 rm -f debian
/$(package_gtk_contrib
).
*
413 rm -f debian
/$(package_gtk_contrib_dev
).
*
414 rm -f debian
/$(package_headers
).
*
415 rm -f debian
/$(package_i18n
).
*
416 rm -f debian
/$(package_doc
).
*
417 rm -f debian
/$(package_examples
).
*
418 rm -f debian
/$(package_wxbase_msw_dev
).
*
419 rm -f debian
/$(package_msw_dev
).
*
420 rm -f debian
/$(package_headers_msw
).
*
422 install_arch
: build_arch
$(install_all_arch
)
424 install: build_all
$(install_all_native
)
426 install-wxbase-lib
: DH_OPTIONS
=-p
$(package_wxbase_lib
)
427 install-wxbase-lib
: build-wxbase-shared-stamp
432 cp
-a
$(objdir_wxbase_shared
)/lib
/* debian
/$(package_wxbase_lib
)/usr
/lib
433 cp
$(objdir_wxbase_shared
)/wxbase-
$(release
)-config debian
/$(package_wxbase_lib
)/usr
/bin
/
435 install-wxbase-dev
: DH_OPTIONS
=-p
$(package_wxbase_dev
)
436 install-wxbase-dev
: build-wxbase-static-stamp install-wxbase-lib
441 dh_movefiles
--sourcedir
=debian
/$(package_wxbase_lib
)
442 cp
$(objdir_wxbase_static
)/lib
/*.a debian
/$(package_wxbase_dev
)/usr
/lib
444 install-wxbase-dbg
: DH_OPTIONS
=-p
$(package_wxbase_dbg
)
445 install-wxbase-dbg
: build-wxbase-debug-stamp
450 cp
-a
$(objdir_wxbase_debug
)/lib
/* debian
/$(package_wxbase_dbg
)/usr
/lib
451 cp
$(objdir_wxbase_debug
)/wxbased-
$(release
)-config debian
/$(package_wxbase_dbg
)/usr
/bin
/
452 cp debian
/lintian-override debian
/$(package_wxbase_dbg
)/usr
/share
/lintian
/overrides
/$(package_wxbase_dbg
)
454 install-gtk-lib
: DH_OPTIONS
=-p
$(package_gtk_lib
)
455 install-gtk-lib
: build-gtk-shared-stamp
460 cd
$(objdir_gtk_shared
) \
461 && $(MAKE
) install prefix=`pwd`/..
/debian
/$(package_gtk_lib
)/usr
462 rm -f debian
/$(package_gtk_lib
)/usr
/bin
/wx-config
464 install-gtk-dev
: DH_OPTIONS
=-p
$(package_gtk_dev
)
465 install-gtk-dev
: build-gtk-static-stamp install-gtk-lib
470 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
471 cp
$(objdir_gtk_static
)/lib
/libwx_gtk
*.a debian
/$(package_gtk_dev
)/usr
/lib
473 install-gtk-dbg
: DH_OPTIONS
=-p
$(package_gtk_dbg
)
474 install-gtk-dbg
: build-gtk-debug-stamp
479 cp
-a
$(objdir_gtk_debug
)/lib
/* debian
/$(package_gtk_dbg
)/usr
/lib
480 cp
$(objdir_gtk_debug
)/wxgtkd-
$(release
)-config debian
/$(package_gtk_dbg
)/usr
/bin
/
481 cp debian
/lintian-override debian
/$(package_gtk_dbg
)/usr
/share
/lintian
/overrides
/$(package_gtk_dbg
)
483 install-gtk-univ
: DH_OPTIONS
=-p
$(package_gtk_univ
)
484 install-gtk-univ
: build-gtk-univ-stamp
489 cp
-a
$(objdir_gtk_univ
)/lib
/* debian
/$(package_gtk_univ
)/usr
/lib
490 cp
$(objdir_gtk_univ
)/wxgtkuniv-
$(release
)-config debian
/$(package_gtk_univ
)/usr
/bin
/
492 install-gtk-contrib
: DH_OPTIONS
=-p
$(package_gtk_contrib
)
493 install-gtk-contrib
: build-contrib-shared-stamp
498 cd
$(objdir_gtk_shared
)/contrib
/src \
499 && $(MAKE
) install prefix=`pwd`/..
/..
/..
/debian
/$(package_gtk_contrib
)/usr
501 install-gtk-contrib-dev
: DH_OPTIONS
=-p
$(package_gtk_contrib_dev
)
502 install-gtk-contrib-dev
: build-contrib-static-stamp install-gtk-dev
507 dh_movefiles
--sourcedir
=debian
/$(package_gtk_contrib
)
508 cp
$(objdir_gtk_static
)/lib
/*.a debian
/$(package_gtk_contrib_dev
)/usr
/lib
509 rm -f debian
/$(package_gtk_contrib_dev
)/usr
/lib
/libwx_gtk
*.a
511 install-gtk-py
: DH_OPTIONS
=-p
$(package_gtk_py
)
512 install-gtk-py
: build-gtk-py-stamp
518 && .
/setup.py
install --prefix=`pwd`/..
/debian
/$(package_gtk_py
)/usr
519 find debian
/$(package_gtk_py
)/usr
/lib
/$(python_dir
)/site-packages
/wxPython \
520 -name
'*.py?' -exec
rm '{}' ';'
522 install-headers
: DH_OPTIONS
=-p
$(package_headers
)
523 install-headers
: install-gtk-lib
528 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
537 install-i18n
: DH_OPTIONS
=-p
$(package_i18n
)
538 install-i18n
: build-i18n-stamp install-gtk-lib
543 dh_movefiles
--sourcedir
=debian
/$(package_gtk_lib
)
545 install-doc
: DH_OPTIONS
=-p
$(package_doc
)
546 install-doc
: build-doc-stamp
552 install-examples
: DH_OPTIONS
=-p
$(package_examples
)
553 install-examples
: build-examples-stamp
559 install-wxbase-msw-dev
: DH_OPTIONS
=-p
$(package_wxbase_msw_dev
)
560 install-wxbase-msw-dev
: build-wxbase-msw-dev-stamp
565 cp
-a
$(objdir_wxbase_msw_static
)/lib
/* debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
566 cp
$(objdir_wxbase_msw_static
)/wxbase-
$(release
)-$(cross_host
)-config debian
/$(package_wxbase_msw_dev
)/usr
/bin
/
567 $(cross_host
)-strip --strip-debug debian
/$(package_wxbase_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
569 install-msw-dev
: DH_OPTIONS
=-p
$(package_msw_dev
)
570 install-msw-dev
: build-msw-dev-stamp
575 cp
-a
$(objdir_msw_static
)/lib
/* debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
576 cp
$(objdir_msw_static
)/wxmsw-
$(release
)-$(cross_host
)-config debian
/$(package_msw_dev
)/usr
/bin
/
577 $(cross_host
)-strip --strip-debug debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
579 install-headers-msw
: DH_OPTIONS
=-p
$(package_headers_msw
)
585 @
# Symlink all the headers that will be installed by the main -headers
586 @
# package to where the cross compiler will expect them.
587 @for f in
`ls -1 include/wx`; do \
588 ln
-s
/usr
/include/wx
/$$f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
; \
589 echo
"linking header /usr/include/wx/$$f"; \
591 @
# But install this lot for real.
592 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
/msw
593 cp
-a
include/wx
/msw debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
594 @
# and remove this cruft(?)
595 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx
/treelay.h
606 @
# Don't strip debug libs at all, and strip cross libs elsewhere
607 @
# with the cross host tools until dh_strip gets smarter.
608 dh_strip
-N
$(package_gtk_dbg
) -N
$(package_wxbase_dbg
) -N
$(package_wxbase_msw_dev
) -N
$(package_msw_dev
)
612 dh_makeshlibs
-N
$(package_gtk_py
) -V
614 dh_shlibdeps
-ldebian
/$(package_gtk_lib
)/usr
/lib
619 # Build architecture-independent files here.
620 # Note that you currently can't build the indep packages without first
621 # building the arch specific package files needed to create them.
622 binary-indep
: build_all
install
623 $(MAKE
) -f debian
/rules \
624 DH_OPTIONS
="-i -N$(package_wxbase_msw_dev) -N$(package_msw_dev) -N$(package_headers_msw)" \
627 # Build just the architecture-dependent files here.
628 binary-arch
: build_arch install_arch
629 $(MAKE
) -f debian
/rules \
630 DH_OPTIONS
="-a -N$(package_wxbase_msw_dev) -N$(package_msw_dev) -N$(package_headers_msw)" \
633 # Build all packages target.
634 binary
: binary-arch binary-indep
636 # This is a special target for building the wxMSW-cross packages.
637 # It's not currently called during the official package build run
638 # but may be run separately to build the extra packages.
639 # There is an implied build dep on the mingw32 cross compiler
640 # that is not in the control file.
641 binary-cross
: control-files-stamp
$(install_all_cross
)
642 $(MAKE
) -f debian
/rules \
643 DH_OPTIONS
="-p$(package_wxbase_msw_dev) -p$(package_msw_dev) -p$(package_headers_msw)" \
647 ############################################################################
649 # Some rules to build a subset of the complete list of packages that can be
650 # built from CVS. Beware that packages produced with these rules may *NOT*
651 # be compatible with packages built using the 'binary' target or even with
652 # Debian policy. Do not distribute packages built with these rules, they
653 # are currently useful for rapid in-house testing by developers only.
655 # libwxgtk shared lib package
656 binary-gtk
: control-files-stamp install-gtk-lib install-headers
657 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_headers)" binary-common
659 binary-gtk-dev
: control-files-stamp install-gtk-dev install-headers
660 $(MAKE
) -f debian
/rules \
661 DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \
664 binary-gtk-dbg
: control-files-stamp install-gtk-dbg install-headers
665 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_headers)" binary-common
667 # libwxbase shared lib package
668 binary-wxbase
: control-files-stamp install-wxbase-lib install-headers
669 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_wxbase_lib) -p$(package_headers)" binary-common
671 binary-wxbase-dev
: control-files-stamp install-wxbase-dev install-headers
672 $(MAKE
) -f debian
/rules \
673 DH_OPTIONS
="-p$(package_wxbase_lib) -p$(package_wxbase_dev) -p$(package_headers)" \
676 binary-wxbase-dbg
: control-files-stamp install-wxbase-dbg install-headers
677 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_wxbase_dbg) -p$(package_headers)" binary-common
679 binary-univ
: control-files-stamp install-gtk-univ
680 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_univ)" binary-common
683 binary-doc
: control-files-stamp install-doc
684 $(MAKE
) -f debian
/rules DH_OPTIONS
=-p
$(package_doc
) binary-common
687 .PHONY
: build build_all build_arch
clean binary-indep binary-arch binary binary-common \
688 binary-gtk binary-gtk-dev binary-gtk-dbg binary-wxbase binary-wxbase-dev \
689 binary-wxbase-dbg binary-doc binary-cross \
690 install install_arch install-wxbase-lib \
691 install-wxbase-dev install-wxbase-dbg install-gtk-lib install-gtk-dev \
692 install-gtk-dbg install-gtk-contrib install-gtk-contrib-dev \
693 install-gtk-py install-headers install-i18n install-doc install-examples \
694 install-wxbase-msw-dev install-msw-dev install-headers-msw