]>
Commit | Line | Data |
---|---|---|
e4c4c1c6 RL |
1 | #!/usr/bin/make -f |
2 | # debian/rules file to build packages from wxWindows CVS source | |
3 | # | |
4 | # Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and | |
5 | # variously stolen code :-) | |
f6bcfd97 BP |
6 | # It makes copious use of the debhelper utilities written by |
7 | # Joey Hess and others. | |
e4c4c1c6 RL |
8 | |
9 | #export DH_VERBOSE=1 | |
10 | export DH_COMPAT=2 | |
f6bcfd97 | 11 | export DH_OPTIONS |
e4c4c1c6 | 12 | |
e0a4aa8a | 13 | release:=$(shell dpkg-parsechangelog | sed -n 's/^Source: wxwindows//p') |
050207ec | 14 | python_dir:=python$(shell python -c "import sys;print sys.version[:3]") |
e4c4c1c6 | 15 | |
3a922bb4 RL |
16 | cross_host=i586-mingw32msvc |
17 | cross_build=$(shell ./config.guess) | |
18 | ||
a0b03701 RL |
19 | config_cache=../config_deb.cache |
20 | config_cache_cross=../config_deb_cross.cache | |
21 | ||
e0a4aa8a | 22 | # Packages to build: |
5c0e67b2 RL |
23 | package_wxbase_lib=libwxbase$(release) |
24 | package_wxbase_dev=libwxbase$(release)-dev | |
f6bcfd97 | 25 | package_wxbase_dbg=libwxbase$(release)-dbg |
e4c4c1c6 RL |
26 | package_gtk_lib=libwxgtk$(release) |
27 | package_gtk_dev=libwxgtk$(release)-dev | |
f6bcfd97 | 28 | package_gtk_dbg=libwxgtk$(release)-dbg |
e0a4aa8a | 29 | package_gtk_py=libwxgtk$(release)-python |
f6bcfd97 BP |
30 | package_gtk_contrib=libwxgtk$(release)-contrib |
31 | package_gtk_contrib_dev=libwxgtk$(release)-contrib-dev | |
32 | package_headers=wxwin$(release)-headers | |
3ca6a5f0 | 33 | package_i18n=wxwin$(release)-i18n |
e0a4aa8a | 34 | package_doc=wxwin$(release)-doc |
5c0e67b2 | 35 | package_examples=wxwin$(release)-examples |
e4c4c1c6 | 36 | |
7b7a7637 RL |
37 | package_gtk_univ=libwxgtk$(release)-univ |
38 | ||
3a922bb4 | 39 | package_wxbase_msw_dev=libwxbase-msw$(release)-dev |
4fb788e4 | 40 | package_wxbase_msw_dbg=libwxbase-msw$(release)-dbg |
3a922bb4 | 41 | package_msw_dev=libwxmsw$(release)-dev |
4fb788e4 | 42 | package_msw_dbg=libwxmsw$(release)-dbg |
3a922bb4 RL |
43 | package_headers_msw=wxwin$(release)-headers-msw |
44 | ||
e0a4aa8a | 45 | # Build directories: |
5c0e67b2 RL |
46 | objdir_wxbase_shared=objs_wxbase_sh |
47 | objdir_wxbase_static=objs_wxbase_st | |
f6bcfd97 | 48 | objdir_wxbase_debug=objs_wxbase_d |
e4c4c1c6 RL |
49 | objdir_gtk_shared=objs_gtk_sh |
50 | objdir_gtk_static=objs_gtk_st | |
f6bcfd97 | 51 | objdir_gtk_debug=objs_gtk_d |
e0a4aa8a RL |
52 | objdir_doc_cruft=objs_doc_con |
53 | objdir_doc=docs/wxWindows-manual.html | |
5c0e67b2 | 54 | objdir_examples=docs/examples |
3ca6a5f0 | 55 | objdir_i18n=locale |
3a922bb4 | 56 | |
7b7a7637 | 57 | objdir_gtk_univ=objs_gtk_univ |
8155b640 | 58 | objdir_univ_install=objs_univ_install |
7b7a7637 | 59 | |
978f1259 RL |
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 | |
3a922bb4 | 66 | |
f6bcfd97 | 67 | objdirs=$(objdir_wxbase_shared) $(objdir_wxbase_static) $(objdir_wxbase_debug) \ |
7b7a7637 | 68 | $(objdir_gtk_shared) $(objdir_gtk_static) $(objdir_gtk_debug) $(objdir_gtk_univ) \ |
8155b640 | 69 | $(objdir_univ_install) $(objdir_doc_cruft) $(objdir_doc) $(objdir_examples) \ |
978f1259 RL |
70 | $(objdir_wxbase_msw_shared) $(objdir_wxbase_msw_static) $(objdir_wxbase_msw_dbg) \ |
71 | $(objdir_msw_shared) $(objdir_msw_static) $(objdir_msw_dbg) | |
e4c4c1c6 | 72 | |
afa3e1ed RL |
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. | |
76 | ||
050207ec RL |
77 | # Build stamps: |
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 \ | |
7b7a7637 | 81 | build-gtk-univ-stamp \ |
050207ec | 82 | build-contrib-shared-stamp build-contrib-static-stamp \ |
afa3e1ed | 83 | build-gtk-py-stamp build-i18n-stamp |
e4c4c1c6 | 84 | |
afa3e1ed | 85 | build_indep_stamps=build-examples-stamp build-doc-stamp |
f6bcfd97 | 86 | |
978f1259 RL |
87 | build_cross_stamps=build-wxbase-msw-shared-stamp build-wxbase-msw-static-stamp \ |
88 | build-wxbase-msw-dbg-stamp build-msw-shared-stamp \ | |
89 | build-msw-static-stamp build-msw-dbg-stamp | |
3a922bb4 RL |
90 | |
91 | build_stamps_native=$(build_arch_stamps) $(build_indep_stamps) | |
92 | ||
93 | build_stamps=$(build_stamps_native) $(build_cross_stamps) | |
050207ec RL |
94 | |
95 | # Install targets: | |
96 | install_all_arch=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \ | |
97 | install-gtk-lib install-gtk-dev install-gtk-dbg \ | |
7b7a7637 | 98 | install-gtk-univ \ |
050207ec | 99 | install-gtk-contrib install-gtk-contrib-dev install-gtk-py \ |
afa3e1ed | 100 | install-headers install-i18n |
050207ec | 101 | |
afa3e1ed | 102 | install_all_indep=install-examples install-doc |
050207ec | 103 | |
4fb788e4 | 104 | install_all_cross=install-wxbase-msw-dev install-wxbase-msw-dbg install-msw-dev install-msw-dbg install-headers-msw |
3a922bb4 RL |
105 | |
106 | install_all_native=$(install_all_arch) $(install_all_indep) | |
107 | ||
108 | install_all=$(install_all_native) $(install_all_cross) | |
e4c4c1c6 RL |
109 | |
110 | ||
afa3e1ed RL |
111 | wxconfig:=$(shell pwd)/$(objdir_gtk_shared)/wx-config \ |
112 | --prefix=$(shell pwd) \ | |
113 | --exec-prefix=$(shell pwd)/$(objdir_gtk_shared) | |
114 | ||
115 | ||
e0a4aa8a RL |
116 | # The Rules: |
117 | ||
e4c4c1c6 RL |
118 | debian/control: debian/control.in |
119 | sed -e 's/=V/$(release)/g' < debian/control.in > debian/control | |
120 | ||
3a922bb4 | 121 | control-files-stamp: debian/control |
f6bcfd97 | 122 | dh_testdir |
050207ec | 123 | @for f in dirs postinst; do \ |
f6bcfd97 BP |
124 | echo "generating control file $(package_wxbase_lib).$$f"; \ |
125 | cp debian/libwxbase.$$f debian/$(package_wxbase_lib).$$f; \ | |
126 | done; | |
050207ec | 127 | @for f in dirs files links postinst prerm; do \ |
f6bcfd97 | 128 | echo "generating control file $(package_wxbase_dev).$$f"; \ |
3a922bb4 RL |
129 | sed -e 's/=V/$(release)/g' < debian/libwxbase-dev.$$f \ |
130 | > debian/$(package_wxbase_dev).$$f; \ | |
f6bcfd97 | 131 | done; |
050207ec | 132 | @for f in dirs links postinst prerm; do \ |
f6bcfd97 | 133 | echo "generating control file $(package_wxbase_dbg).$$f"; \ |
3a922bb4 RL |
134 | sed -e 's/=V/$(release)/g' < debian/libwxbase-dbg.$$f \ |
135 | > debian/$(package_wxbase_dbg).$$f; \ | |
f6bcfd97 | 136 | done; |
050207ec | 137 | @for f in dirs postinst; do \ |
f6bcfd97 BP |
138 | echo "generating control file $(package_gtk_lib).$$f"; \ |
139 | cp debian/libwxgtk.$$f debian/$(package_gtk_lib).$$f; \ | |
140 | done; | |
050207ec | 141 | @for f in dirs files links postinst prerm; do \ |
f6bcfd97 | 142 | echo "generating control file $(package_gtk_dev).$$f"; \ |
3a922bb4 RL |
143 | sed -e 's/=V/$(release)/g' < debian/libwxgtk-dev.$$f \ |
144 | > debian/$(package_gtk_dev).$$f; \ | |
f6bcfd97 | 145 | done; |
050207ec | 146 | @for f in dirs links postinst prerm; do \ |
f6bcfd97 | 147 | echo "generating control file $(package_gtk_dbg).$$f"; \ |
3a922bb4 RL |
148 | sed -e 's/=V/$(release)/g' < debian/libwxgtk-dbg.$$f \ |
149 | > debian/$(package_gtk_dbg).$$f; \ | |
f6bcfd97 | 150 | done; |
7b7a7637 RL |
151 | @for f in dirs links postinst prerm; do \ |
152 | echo "generating control file $(package_gtk_univ).$$f"; \ | |
153 | sed -e 's/=V/$(release)/g' < debian/libwxgtk-univ.$$f \ | |
154 | > debian/$(package_gtk_univ).$$f; \ | |
155 | done; | |
f6bcfd97 BP |
156 | @for f in dirs docs files postinst prerm; do \ |
157 | echo "generating control file $(package_gtk_py).$$f"; \ | |
050207ec RL |
158 | sed -e 's/=PY/$(python_dir)/g;s/=V/$(release)/g' < debian/libwxgtk-python.$$f \ |
159 | > debian/$(package_gtk_py).$$f; \ | |
f6bcfd97 | 160 | done; |
050207ec | 161 | @for f in dirs postinst; do \ |
f6bcfd97 BP |
162 | echo "generating control file $(package_gtk_contrib).$$f"; \ |
163 | cp debian/libwxgtk-contrib.$$f debian/$(package_gtk_contrib).$$f; \ | |
164 | done; | |
050207ec | 165 | @for f in dirs files; do \ |
f6bcfd97 BP |
166 | echo "generating control file $(package_gtk_contrib_dev).$$f"; \ |
167 | cp debian/libwxgtk-contrib-dev.$$f debian/$(package_gtk_contrib_dev).$$f; \ | |
168 | done; | |
050207ec | 169 | @for f in dirs files; do \ |
f6bcfd97 BP |
170 | echo "generating control file $(package_headers).$$f"; \ |
171 | cp debian/wxwin-headers.$$f debian/$(package_headers).$$f; \ | |
172 | done; | |
050207ec | 173 | @for f in dirs files; do \ |
3ca6a5f0 BP |
174 | echo "generating control file $(package_i18n).$$f"; \ |
175 | cp debian/wxwin-i18n.$$f debian/$(package_i18n).$$f; \ | |
176 | done; | |
f6bcfd97 BP |
177 | @for f in dirs docs doc-base; do \ |
178 | echo "generating control file $(package_doc).$$f"; \ | |
3a922bb4 RL |
179 | sed -e 's/=V/$(release)/g' < debian/wxwin-doc.$$f \ |
180 | > debian/$(package_doc).$$f; \ | |
f6bcfd97 | 181 | done; |
050207ec | 182 | @for f in examples; do \ |
f6bcfd97 BP |
183 | echo "generating control file $(package_examples).$$f"; \ |
184 | cp debian/wxwin-examples.$$f debian/$(package_examples).$$f; \ | |
185 | done; | |
3a922bb4 RL |
186 | @for f in dirs links postinst prerm; do \ |
187 | echo "generating control file $(package_wxbase_msw_dev).$$f"; \ | |
188 | sed -e 's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian/libwxbase-msw-dev.$$f \ | |
189 | > debian/$(package_wxbase_msw_dev).$$f; \ | |
190 | done; | |
4fb788e4 RL |
191 | @for f in dirs links postinst prerm; do \ |
192 | echo "generating control file $(package_wxbase_msw_dbg).$$f"; \ | |
193 | sed -e 's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian/libwxbase-msw-dbg.$$f \ | |
194 | > debian/$(package_wxbase_msw_dbg).$$f; \ | |
195 | done; | |
3a922bb4 RL |
196 | @for f in dirs links postinst prerm; do \ |
197 | echo "generating control file $(package_msw_dev).$$f"; \ | |
198 | sed -e 's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian/libwxmsw-dev.$$f \ | |
199 | > debian/$(package_msw_dev).$$f; \ | |
200 | done; | |
4fb788e4 RL |
201 | @for f in dirs links postinst prerm; do \ |
202 | echo "generating control file $(package_msw_dbg).$$f"; \ | |
203 | sed -e 's/=V/$(release)/g;s/=H/$(cross_host)/g' < debian/libwxmsw-dbg.$$f \ | |
204 | > debian/$(package_msw_dbg).$$f; \ | |
205 | done; | |
3a922bb4 RL |
206 | @for f in dirs; do \ |
207 | echo "generating control file $(package_headers_msw).$$f"; \ | |
208 | sed -e 's/=H/$(cross_host)/g' < debian/wxwin-headers-msw.$$f \ | |
209 | > debian/$(package_headers_msw).$$f; \ | |
210 | done; | |
f6bcfd97 BP |
211 | touch $@ |
212 | ||
050207ec | 213 | build_arch: control-files-stamp $(build_arch_stamps) |
3a922bb4 | 214 | build_all: control-files-stamp $(build_stamps_native) |
3abb92ce | 215 | |
3a922bb4 RL |
216 | # Really we should probably do nothing here until we know which |
217 | # binary target is being called, but alpha builds were exploding | |
218 | # (compiler segfaults) in random places when building under fakeroot | |
219 | # from the binary-arch target. Build all -arch files here then, and | |
220 | # let the -indep stuff fend for itself later. | |
221 | ||
222 | build: build_arch | |
050207ec | 223 | |
e4c4c1c6 | 224 | |
5c0e67b2 RL |
225 | build-wxbase-shared-stamp: |
226 | dh_testdir | |
3a922bb4 | 227 | mkdir -p $(objdir_wxbase_shared) |
5c0e67b2 | 228 | cd $(objdir_wxbase_shared) \ |
f6bcfd97 | 229 | && ../configure --prefix=/usr \ |
a0b03701 | 230 | --cache-file=$(config_cache) \ |
f6bcfd97 | 231 | --disable-gui \ |
3a922bb4 | 232 | --enable-soname \ |
f6bcfd97 | 233 | --with-zlib=sys \ |
5c0e67b2 RL |
234 | && $(MAKE) |
235 | touch $@ | |
236 | ||
237 | build-wxbase-static-stamp: | |
238 | dh_testdir | |
3a922bb4 | 239 | mkdir -p $(objdir_wxbase_static) |
5c0e67b2 | 240 | cd $(objdir_wxbase_static) \ |
f6bcfd97 | 241 | && ../configure --prefix=/usr \ |
a0b03701 | 242 | --cache-file=$(config_cache) \ |
f6bcfd97 BP |
243 | --disable-gui \ |
244 | --disable-shared \ | |
245 | --with-zlib=sys \ | |
246 | && $(MAKE) | |
247 | touch $@ | |
248 | ||
249 | build-wxbase-debug-stamp: | |
250 | dh_testdir | |
3a922bb4 | 251 | mkdir -p $(objdir_wxbase_debug) |
f6bcfd97 BP |
252 | cd $(objdir_wxbase_debug) \ |
253 | && ../configure --prefix=/usr \ | |
a0b03701 | 254 | --cache-file=$(config_cache) \ |
f6bcfd97 BP |
255 | --disable-gui \ |
256 | --enable-debug \ | |
3a922bb4 | 257 | --enable-soname \ |
f6bcfd97 | 258 | --with-zlib=sys \ |
5c0e67b2 RL |
259 | && $(MAKE) |
260 | touch $@ | |
261 | ||
e4c4c1c6 RL |
262 | build-gtk-shared-stamp: |
263 | dh_testdir | |
3a922bb4 | 264 | mkdir -p $(objdir_gtk_shared) |
e4c4c1c6 | 265 | cd $(objdir_gtk_shared) \ |
f6bcfd97 | 266 | && ../configure --prefix=/usr \ |
a0b03701 | 267 | --cache-file=$(config_cache) \ |
f6bcfd97 BP |
268 | --with-gtk \ |
269 | --with-opengl \ | |
3a922bb4 | 270 | --enable-soname \ |
f6bcfd97 BP |
271 | --with-zlib=sys \ |
272 | --with-libjpeg=sys \ | |
273 | --with-libpng=sys \ | |
274 | --with-libtiff=sys \ | |
fdb59905 | 275 | --enable-dynamic-loader \ |
e4c4c1c6 RL |
276 | && $(MAKE) |
277 | touch $@ | |
278 | ||
279 | build-gtk-static-stamp: | |
280 | dh_testdir | |
3a922bb4 | 281 | mkdir -p $(objdir_gtk_static) |
e4c4c1c6 | 282 | cd $(objdir_gtk_static) \ |
f6bcfd97 | 283 | && ../configure --prefix=/usr \ |
a0b03701 | 284 | --cache-file=$(config_cache) \ |
f6bcfd97 BP |
285 | --with-gtk \ |
286 | --with-opengl \ | |
287 | --disable-shared \ | |
288 | --with-zlib=sys \ | |
289 | --with-libjpeg=sys \ | |
290 | --with-libpng=sys \ | |
291 | --with-libtiff=sys \ | |
fdb59905 | 292 | --enable-dynamic-loader \ |
e4c4c1c6 RL |
293 | && $(MAKE) |
294 | touch $@ | |
295 | ||
f6bcfd97 BP |
296 | build-gtk-debug-stamp: |
297 | dh_testdir | |
3a922bb4 | 298 | mkdir -p $(objdir_gtk_debug) |
f6bcfd97 BP |
299 | cd $(objdir_gtk_debug) \ |
300 | && ../configure --prefix=/usr \ | |
a0b03701 | 301 | --cache-file=$(config_cache) \ |
f6bcfd97 BP |
302 | --with-gtk \ |
303 | --with-opengl \ | |
304 | --enable-debug \ | |
3a922bb4 | 305 | --enable-soname \ |
f6bcfd97 BP |
306 | --with-zlib=sys \ |
307 | --with-libjpeg=sys \ | |
308 | --with-libpng=sys \ | |
309 | --with-libtiff=sys \ | |
fdb59905 | 310 | --enable-dynamic-loader \ |
f6bcfd97 BP |
311 | && $(MAKE) |
312 | touch $@ | |
313 | ||
7b7a7637 RL |
314 | build-gtk-univ-stamp: |
315 | dh_testdir | |
316 | mkdir -p $(objdir_gtk_univ) | |
317 | cd $(objdir_gtk_univ) \ | |
318 | && ../configure --prefix=/usr \ | |
a0b03701 | 319 | --cache-file=$(config_cache) \ |
7b7a7637 RL |
320 | --with-gtk \ |
321 | --with-opengl \ | |
322 | --enable-universal \ | |
323 | --enable-soname \ | |
324 | --with-zlib=sys \ | |
325 | --with-libjpeg=sys \ | |
326 | --with-libpng=sys \ | |
327 | --with-libtiff=sys \ | |
fdb59905 | 328 | --enable-dynamic-loader \ |
7b7a7637 RL |
329 | && $(MAKE) |
330 | touch $@ | |
331 | ||
f6bcfd97 BP |
332 | build-contrib-shared-stamp: build-gtk-shared-stamp |
333 | dh_testdir | |
050207ec RL |
334 | cd $(objdir_gtk_shared)/contrib/src \ |
335 | && $(MAKE) | |
f6bcfd97 BP |
336 | touch $@ |
337 | ||
338 | build-contrib-static-stamp: build-gtk-static-stamp | |
339 | dh_testdir | |
050207ec RL |
340 | cd $(objdir_gtk_static)/contrib/src \ |
341 | && $(MAKE) | |
f6bcfd97 BP |
342 | touch $@ |
343 | ||
050207ec | 344 | build-gtk-py-stamp: build-gtk-shared-stamp |
e0a4aa8a | 345 | dh_testdir |
050207ec RL |
346 | touch docs/lgpl.txt |
347 | cd wxPython \ | |
afa3e1ed | 348 | && ./setup.py build IN_CVS_TREE=1 WX_CONFIG='$(wxconfig)' |
e0a4aa8a RL |
349 | touch $@ |
350 | ||
f538864d RL |
351 | build-doc-stamp: build-gtk-shared-stamp |
352 | dh_testdir | |
353 | cd $(objdir_gtk_shared)/utils/tex2rtf/src \ | |
e0a4aa8a RL |
354 | && $(MAKE) |
355 | mkdir $(objdir_doc) | |
356 | mkdir $(objdir_doc_cruft) | |
357 | cd $(objdir_doc_cruft) \ | |
3a922bb4 | 358 | && LD_LIBRARY_PATH=../$(objdir_gtk_shared)/lib:$(LD_LIBRARY_PATH) \ |
e0a4aa8a | 359 | ../$(objdir_gtk_shared)/utils/tex2rtf/src/tex2rtf \ |
5c0e67b2 | 360 | ../docs/latex/wx/manual.tex ../$(objdir_doc)/wxwin.htm -twice -html |
e0a4aa8a RL |
361 | cp docs/latex/wx/*.gif $(objdir_doc) |
362 | rm -rf $(objdir_doc_cruft) | |
363 | rm -f $(objdir_doc)/wxwin.con $(objdir_doc)/wxwin.hh* \ | |
364 | $(objdir_doc)/wxwin.htx $(objdir_doc)/wxwin.ref | |
f538864d RL |
365 | touch $@ |
366 | ||
3a922bb4 | 367 | build-examples-stamp: build-gtk-shared-stamp |
5c0e67b2 | 368 | dh_testdir |
3a922bb4 RL |
369 | mkdir -p $(objdir_examples) |
370 | ||
371 | # copy all samples and the Makefile generated for libwxgtk. | |
5c0e67b2 | 372 | cp -a samples $(objdir_examples) |
3a922bb4 RL |
373 | rm -f $(objdir_examples)/samples/Makefile |
374 | cp -a $(objdir_gtk_shared)/samples/Makefile $(objdir_examples)/samples | |
375 | ||
5c0e67b2 | 376 | cp -a demos $(objdir_examples) |
f6bcfd97 | 377 | cp -a wxPython/demo $(objdir_examples)/wxPython |
5c0e67b2 RL |
378 | @for d in $(objdir_examples)/demos $(objdir_examples)/samples; do \ |
379 | (cd $$d \ | |
380 | && mv Makefile.in Makefile \ | |
381 | && rm -f configure* \ | |
382 | && find -name 'Makefile.in' -exec rm -f '{}' ';' \ | |
383 | && for f in $$(find -type d); do \ | |
384 | if [ -f $$f/makefile.unx ]; then \ | |
385 | mv $$f/makefile.unx $$f/Makefile; \ | |
386 | fi; \ | |
387 | done) \ | |
388 | done; | |
389 | touch $@ | |
390 | ||
3ca6a5f0 BP |
391 | build-i18n-stamp: build-gtk-shared-stamp |
392 | dh_testdir | |
54abcc91 RL |
393 | |
394 | # touch .po files first, since if they are not already up | |
395 | # to date then _now_ is not the time to fix it. | |
396 | # That should have been been done before cvs was tagged. | |
3ca6a5f0 | 397 | cd $(objdir_i18n) \ |
54abcc91 | 398 | && touch *.po \ |
3ca6a5f0 BP |
399 | && $(MAKE) allmo |
400 | touch $@ | |
401 | ||
978f1259 | 402 | build-wxbase-msw-shared-stamp: |
3a922bb4 | 403 | dh_testdir |
978f1259 RL |
404 | mkdir -p $(objdir_wxbase_msw_shared) |
405 | cd $(objdir_wxbase_msw_shared) \ | |
3a922bb4 | 406 | && ../configure --prefix=/usr/$(cross_host) \ |
a0b03701 | 407 | --cache-file=$(config_cache_cross) \ |
3a922bb4 RL |
408 | --host=$(cross_host) \ |
409 | --build=$(cross_build) \ | |
410 | --disable-gui \ | |
4fb788e4 RL |
411 | && $(MAKE) |
412 | touch $@ | |
413 | ||
978f1259 RL |
414 | build-wxbase-msw-static-stamp: |
415 | dh_testdir | |
416 | mkdir -p $(objdir_wxbase_msw_static) | |
417 | cd $(objdir_wxbase_msw_static) \ | |
418 | && ../configure --prefix=/usr/$(cross_host) \ | |
419 | --cache-file=$(config_cache_cross) \ | |
420 | --host=$(cross_host) \ | |
421 | --build=$(cross_build) \ | |
422 | --disable-gui \ | |
423 | --disable-shared \ | |
424 | && $(MAKE) | |
425 | touch $@ | |
426 | ||
427 | # Note this builds dll only, since wxmsw static debug is > 130MB ! | |
4fb788e4 RL |
428 | build-wxbase-msw-dbg-stamp: |
429 | dh_testdir | |
430 | mkdir -p $(objdir_wxbase_msw_dbg) | |
431 | cd $(objdir_wxbase_msw_dbg) \ | |
432 | && ../configure --prefix=/usr/$(cross_host) \ | |
a0b03701 | 433 | --cache-file=$(config_cache_cross) \ |
4fb788e4 RL |
434 | --host=$(cross_host) \ |
435 | --build=$(cross_build) \ | |
436 | --disable-gui \ | |
437 | --enable-debug \ | |
3a922bb4 RL |
438 | && $(MAKE) |
439 | touch $@ | |
440 | ||
978f1259 | 441 | build-msw-shared-stamp: |
3a922bb4 | 442 | dh_testdir |
978f1259 RL |
443 | mkdir -p $(objdir_msw_shared) |
444 | cd $(objdir_msw_shared) \ | |
3a922bb4 | 445 | && ../configure --prefix=/usr/$(cross_host) \ |
a0b03701 | 446 | --cache-file=$(config_cache_cross) \ |
3a922bb4 RL |
447 | --host=$(cross_host) \ |
448 | --build=$(cross_build) \ | |
4fb788e4 RL |
449 | && $(MAKE) |
450 | touch $@ | |
451 | ||
978f1259 RL |
452 | build-msw-static-stamp: |
453 | dh_testdir | |
454 | mkdir -p $(objdir_msw_static) | |
455 | cd $(objdir_msw_static) \ | |
456 | && ../configure --prefix=/usr/$(cross_host) \ | |
457 | --cache-file=$(config_cache_cross) \ | |
458 | --host=$(cross_host) \ | |
459 | --build=$(cross_build) \ | |
460 | --disable-shared \ | |
461 | && $(MAKE) | |
462 | touch $@ | |
463 | ||
4fb788e4 RL |
464 | build-msw-dbg-stamp: |
465 | dh_testdir | |
466 | mkdir -p $(objdir_msw_dbg) | |
467 | cd $(objdir_msw_dbg) \ | |
468 | && ../configure --prefix=/usr/$(cross_host) \ | |
a0b03701 | 469 | --cache-file=$(config_cache_cross) \ |
4fb788e4 RL |
470 | --host=$(cross_host) \ |
471 | --build=$(cross_build) \ | |
472 | --enable-debug \ | |
3a922bb4 RL |
473 | && $(MAKE) |
474 | touch $@ | |
475 | ||
476 | ||
e4c4c1c6 RL |
477 | clean: debian/control |
478 | dh_testdir | |
479 | dh_testroot | |
54abcc91 | 480 | |
978f1259 | 481 | rm -rf config_deb.cache config_deb_cross.cache control-files-stamp $(build_stamps) $(objdirs) |
050207ec | 482 | rm -f docs/lgpl.txt |
54abcc91 RL |
483 | rm -f docs/latex/wx/manual.bb |
484 | rm -f $(objdir_i18n)/*.mo | |
485 | ||
486 | cd wxPython \ | |
487 | && ./setup.py clean \ | |
488 | && rm -rf licence \ | |
489 | && rm -rf build \ | |
0d7b3f0a | 490 | && rm -rf contrib/gizmos/contrib \ |
54abcc91 RL |
491 | && rm -rf contrib/ogl/contrib \ |
492 | && rm -rf contrib/stc/contrib \ | |
493 | && rm -rf contrib/xrc/contrib \ | |
494 | && rm -rf *.pyc | |
495 | ||
e4c4c1c6 | 496 | dh_clean |
5c0e67b2 RL |
497 | rm -f debian/$(package_wxbase_lib).* |
498 | rm -f debian/$(package_wxbase_dev).* | |
f6bcfd97 | 499 | rm -f debian/$(package_wxbase_dbg).* |
f538864d RL |
500 | rm -f debian/$(package_gtk_lib).* |
501 | rm -f debian/$(package_gtk_dev).* | |
f6bcfd97 | 502 | rm -f debian/$(package_gtk_dbg).* |
7b7a7637 | 503 | rm -f debian/$(package_gtk_univ).* |
e0a4aa8a | 504 | rm -f debian/$(package_gtk_py).* |
f6bcfd97 BP |
505 | rm -f debian/$(package_gtk_contrib).* |
506 | rm -f debian/$(package_gtk_contrib_dev).* | |
507 | rm -f debian/$(package_headers).* | |
3ca6a5f0 | 508 | rm -f debian/$(package_i18n).* |
f538864d | 509 | rm -f debian/$(package_doc).* |
5c0e67b2 | 510 | rm -f debian/$(package_examples).* |
3a922bb4 | 511 | rm -f debian/$(package_wxbase_msw_dev).* |
4fb788e4 | 512 | rm -f debian/$(package_wxbase_msw_dbg).* |
3a922bb4 | 513 | rm -f debian/$(package_msw_dev).* |
4fb788e4 | 514 | rm -f debian/$(package_msw_dbg).* |
3a922bb4 | 515 | rm -f debian/$(package_headers_msw).* |
e4c4c1c6 | 516 | |
050207ec RL |
517 | install_arch: build_arch $(install_all_arch) |
518 | ||
3a922bb4 | 519 | install: build_all $(install_all_native) |
f6bcfd97 BP |
520 | |
521 | install-wxbase-lib: DH_OPTIONS=-p$(package_wxbase_lib) | |
522 | install-wxbase-lib: build-wxbase-shared-stamp | |
e0a4aa8a RL |
523 | dh_testdir |
524 | dh_testroot | |
e4c4c1c6 RL |
525 | dh_clean -k |
526 | dh_installdirs | |
f6bcfd97 | 527 | cp -a $(objdir_wxbase_shared)/lib/* debian/$(package_wxbase_lib)/usr/lib |
3a922bb4 | 528 | cp $(objdir_wxbase_shared)/wxbase-$(release)-config debian/$(package_wxbase_lib)/usr/bin/ |
f6bcfd97 BP |
529 | |
530 | install-wxbase-dev: DH_OPTIONS=-p$(package_wxbase_dev) | |
531 | install-wxbase-dev: build-wxbase-static-stamp install-wxbase-lib | |
532 | dh_testdir | |
533 | dh_testroot | |
534 | dh_clean -k | |
535 | dh_installdirs | |
536 | dh_movefiles --sourcedir=debian/$(package_wxbase_lib) | |
537 | cp $(objdir_wxbase_static)/lib/*.a debian/$(package_wxbase_dev)/usr/lib | |
538 | ||
539 | install-wxbase-dbg: DH_OPTIONS=-p$(package_wxbase_dbg) | |
540 | install-wxbase-dbg: build-wxbase-debug-stamp | |
541 | dh_testdir | |
542 | dh_testroot | |
543 | dh_clean -k | |
544 | dh_installdirs | |
545 | cp -a $(objdir_wxbase_debug)/lib/* debian/$(package_wxbase_dbg)/usr/lib | |
3a922bb4 | 546 | cp $(objdir_wxbase_debug)/wxbased-$(release)-config debian/$(package_wxbase_dbg)/usr/bin/ |
050207ec | 547 | cp debian/lintian-override debian/$(package_wxbase_dbg)/usr/share/lintian/overrides/$(package_wxbase_dbg) |
f6bcfd97 BP |
548 | |
549 | install-gtk-lib: DH_OPTIONS=-p$(package_gtk_lib) | |
550 | install-gtk-lib: build-gtk-shared-stamp | |
551 | dh_testdir | |
552 | dh_testroot | |
553 | dh_clean -k | |
554 | dh_installdirs | |
e4c4c1c6 | 555 | cd $(objdir_gtk_shared) \ |
f6bcfd97 BP |
556 | && $(MAKE) install prefix=`pwd`/../debian/$(package_gtk_lib)/usr |
557 | rm -f debian/$(package_gtk_lib)/usr/bin/wx-config | |
e4c4c1c6 | 558 | |
f6bcfd97 BP |
559 | install-gtk-dev: DH_OPTIONS=-p$(package_gtk_dev) |
560 | install-gtk-dev: build-gtk-static-stamp install-gtk-lib | |
561 | dh_testdir | |
562 | dh_testroot | |
563 | dh_clean -k | |
564 | dh_installdirs | |
565 | dh_movefiles --sourcedir=debian/$(package_gtk_lib) | |
2b5f62a0 VZ |
566 | cp $(objdir_gtk_static)/lib/libwx_gtk-*.a debian/$(package_gtk_dev)/usr/lib |
567 | cp $(objdir_gtk_static)/lib/libwx_gtk_gl-*.a debian/$(package_gtk_dev)/usr/lib | |
e4c4c1c6 | 568 | |
f6bcfd97 BP |
569 | install-gtk-dbg: DH_OPTIONS=-p$(package_gtk_dbg) |
570 | install-gtk-dbg: build-gtk-debug-stamp | |
571 | dh_testdir | |
572 | dh_testroot | |
573 | dh_clean -k | |
574 | dh_installdirs | |
575 | cp -a $(objdir_gtk_debug)/lib/* debian/$(package_gtk_dbg)/usr/lib | |
3a922bb4 | 576 | cp $(objdir_gtk_debug)/wxgtkd-$(release)-config debian/$(package_gtk_dbg)/usr/bin/ |
050207ec | 577 | cp debian/lintian-override debian/$(package_gtk_dbg)/usr/share/lintian/overrides/$(package_gtk_dbg) |
e4c4c1c6 | 578 | |
7b7a7637 RL |
579 | install-gtk-univ: DH_OPTIONS=-p$(package_gtk_univ) |
580 | install-gtk-univ: build-gtk-univ-stamp | |
581 | dh_testdir | |
582 | dh_testroot | |
583 | dh_clean -k | |
584 | dh_installdirs | |
585 | cp -a $(objdir_gtk_univ)/lib/* debian/$(package_gtk_univ)/usr/lib | |
586 | cp $(objdir_gtk_univ)/wxgtkuniv-$(release)-config debian/$(package_gtk_univ)/usr/bin/ | |
f1687ed8 | 587 | cp debian/lintian-override debian/$(package_gtk_univ)/usr/share/lintian/overrides/$(package_gtk_univ) |
7b7a7637 | 588 | |
f6bcfd97 BP |
589 | install-gtk-contrib: DH_OPTIONS=-p$(package_gtk_contrib) |
590 | install-gtk-contrib: build-contrib-shared-stamp | |
e4c4c1c6 RL |
591 | dh_testdir |
592 | dh_testroot | |
f6bcfd97 BP |
593 | dh_clean -k |
594 | dh_installdirs | |
595 | cd $(objdir_gtk_shared)/contrib/src \ | |
596 | && $(MAKE) install prefix=`pwd`/../../../debian/$(package_gtk_contrib)/usr | |
597 | ||
598 | install-gtk-contrib-dev: DH_OPTIONS=-p$(package_gtk_contrib_dev) | |
599 | install-gtk-contrib-dev: build-contrib-static-stamp install-gtk-dev | |
600 | dh_testdir | |
601 | dh_testroot | |
602 | dh_clean -k | |
603 | dh_installdirs | |
604 | dh_movefiles --sourcedir=debian/$(package_gtk_contrib) | |
605 | cp $(objdir_gtk_static)/lib/*.a debian/$(package_gtk_contrib_dev)/usr/lib | |
2b5f62a0 VZ |
606 | rm -f debian/$(package_gtk_contrib_dev)/usr/lib/libwx_gtk-*.a |
607 | rm -f debian/$(package_gtk_contrib_dev)/usr/lib/libwx_gtk_gl-*.a | |
f6bcfd97 BP |
608 | |
609 | install-gtk-py: DH_OPTIONS=-p$(package_gtk_py) | |
050207ec | 610 | install-gtk-py: build-gtk-py-stamp |
f6bcfd97 BP |
611 | dh_testdir |
612 | dh_testroot | |
613 | dh_clean -k | |
614 | dh_installdirs | |
050207ec RL |
615 | cd wxPython \ |
616 | && ./setup.py install --prefix=`pwd`/../debian/$(package_gtk_py)/usr | |
617 | find debian/$(package_gtk_py)/usr/lib/$(python_dir)/site-packages/wxPython \ | |
f6bcfd97 BP |
618 | -name '*.py?' -exec rm '{}' ';' |
619 | ||
620 | install-headers: DH_OPTIONS=-p$(package_headers) | |
621 | install-headers: install-gtk-lib | |
622 | dh_testdir | |
623 | dh_testroot | |
624 | dh_clean -k | |
625 | dh_installdirs | |
8155b640 RL |
626 | |
627 | # The only way to be really sure we get the univ headers correct is to install | |
628 | # them. Do that in a scratch dirs, and move the gtk ones last, so at least | |
629 | # they win in the result of any uncaught conflict. | |
630 | ||
631 | cd $(objdir_gtk_univ) \ | |
632 | && $(MAKE) install prefix=`pwd`/../$(objdir_univ_install)/usr | |
633 | ||
634 | dh_movefiles --sourcedir=$(objdir_univ_install) | |
f6bcfd97 | 635 | dh_movefiles --sourcedir=debian/$(package_gtk_lib) |
8155b640 | 636 | |
f6bcfd97 | 637 | dh_installmanpages \ |
e4c4c1c6 RL |
638 | ansi2knr.1 \ |
639 | jpegtran.1 \ | |
f6bcfd97 | 640 | libpng.3 \ |
e4c4c1c6 | 641 | libpngpf.3 \ |
f6bcfd97 | 642 | zlib.3 \ |
e4c4c1c6 | 643 | png.5 |
f6bcfd97 | 644 | |
3ca6a5f0 BP |
645 | install-i18n: DH_OPTIONS=-p$(package_i18n) |
646 | install-i18n: build-i18n-stamp install-gtk-lib | |
647 | dh_testdir | |
648 | dh_testroot | |
649 | dh_clean -k | |
650 | dh_installdirs | |
651 | dh_movefiles --sourcedir=debian/$(package_gtk_lib) | |
652 | ||
f6bcfd97 BP |
653 | install-doc: DH_OPTIONS=-p$(package_doc) |
654 | install-doc: build-doc-stamp | |
655 | dh_testdir | |
656 | dh_testroot | |
657 | dh_clean -k | |
658 | dh_installdirs | |
659 | ||
660 | install-examples: DH_OPTIONS=-p$(package_examples) | |
661 | install-examples: build-examples-stamp | |
662 | dh_testdir | |
663 | dh_testroot | |
664 | dh_clean -k | |
665 | dh_installdirs | |
666 | ||
3a922bb4 | 667 | install-wxbase-msw-dev: DH_OPTIONS=-p$(package_wxbase_msw_dev) |
978f1259 | 668 | install-wxbase-msw-dev: build-wxbase-msw-shared-stamp build-wxbase-msw-static-stamp |
3a922bb4 RL |
669 | dh_testdir |
670 | dh_testroot | |
671 | dh_clean -k | |
672 | dh_installdirs | |
978f1259 RL |
673 | cp -a $(objdir_wxbase_msw_shared)/lib/* debian/$(package_wxbase_msw_dev)/usr/$(cross_host)/lib |
674 | cp -a $(objdir_wxbase_msw_static)/lib/*.a debian/$(package_wxbase_msw_dev)/usr/$(cross_host)/lib | |
675 | cp $(objdir_wxbase_msw_shared)/wxbase-$(release)-$(cross_host)-config debian/$(package_wxbase_msw_dev)/usr/bin/ | |
3a922bb4 RL |
676 | $(cross_host)-strip --strip-debug debian/$(package_wxbase_msw_dev)/usr/$(cross_host)/lib/*.a |
677 | ||
4fb788e4 RL |
678 | install-wxbase-msw-dbg: DH_OPTIONS=-p$(package_wxbase_msw_dbg) |
679 | install-wxbase-msw-dbg: build-wxbase-msw-dbg-stamp | |
680 | dh_testdir | |
681 | dh_testroot | |
682 | dh_clean -k | |
683 | dh_installdirs | |
684 | cp -a $(objdir_wxbase_msw_dbg)/lib/* debian/$(package_wxbase_msw_dbg)/usr/$(cross_host)/lib | |
a0b03701 | 685 | cp $(objdir_wxbase_msw_dbg)/wxbased-$(release)-$(cross_host)-config debian/$(package_wxbase_msw_dbg)/usr/bin/ |
978f1259 RL |
686 | # No static lib, they're freakin' huge! |
687 | #$(cross_host)-strip --strip-debug debian/$(package_wxbase_msw_dbg)/usr/$(cross_host)/lib/*.a | |
4fb788e4 | 688 | |
3a922bb4 | 689 | install-msw-dev: DH_OPTIONS=-p$(package_msw_dev) |
978f1259 | 690 | install-msw-dev: build-msw-shared-stamp build-msw-static-stamp |
3a922bb4 RL |
691 | dh_testdir |
692 | dh_testroot | |
693 | dh_clean -k | |
694 | dh_installdirs | |
978f1259 RL |
695 | cp -a $(objdir_msw_shared)/lib/* debian/$(package_msw_dev)/usr/$(cross_host)/lib |
696 | cp -a $(objdir_msw_static)/lib/*.a debian/$(package_msw_dev)/usr/$(cross_host)/lib | |
697 | cp $(objdir_msw_shared)/wxmsw-$(release)-$(cross_host)-config debian/$(package_msw_dev)/usr/bin/ | |
3a922bb4 RL |
698 | $(cross_host)-strip --strip-debug debian/$(package_msw_dev)/usr/$(cross_host)/lib/*.a |
699 | ||
4fb788e4 RL |
700 | install-msw-dbg: DH_OPTIONS=-p$(package_msw_dbg) |
701 | install-msw-dbg: build-msw-dbg-stamp | |
702 | dh_testdir | |
703 | dh_testroot | |
704 | dh_clean -k | |
705 | dh_installdirs | |
706 | cp -a $(objdir_msw_dbg)/lib/* debian/$(package_msw_dbg)/usr/$(cross_host)/lib | |
a0b03701 | 707 | cp $(objdir_msw_dbg)/wxmswd-$(release)-$(cross_host)-config debian/$(package_msw_dbg)/usr/bin/ |
978f1259 RL |
708 | # No static lib, they're freakin' huge! |
709 | #$(cross_host)-strip --strip-debug debian/$(package_msw_dbg)/usr/$(cross_host)/lib/*.a | |
4fb788e4 | 710 | |
3a922bb4 RL |
711 | install-headers-msw: DH_OPTIONS=-p$(package_headers_msw) |
712 | install-headers-msw: | |
713 | dh_testdir | |
714 | dh_testroot | |
715 | dh_clean -k | |
716 | dh_installdirs | |
717 | @# Symlink all the headers that will be installed by the main -headers | |
718 | @# package to where the cross compiler will expect them. | |
719 | @for f in `ls -1 include/wx`; do \ | |
720 | ln -s /usr/include/wx/$$f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx; \ | |
721 | echo "linking header /usr/include/wx/$$f"; \ | |
722 | done; | |
723 | @# But install this lot for real. | |
724 | rm -f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx/msw | |
725 | cp -a include/wx/msw debian/$(package_headers_msw)/usr/$(cross_host)/include/wx | |
726 | @# and remove this cruft(?) | |
727 | rm -f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx/treelay.h | |
728 | ||
729 | ||
f6bcfd97 | 730 | binary-common: |
f6bcfd97 BP |
731 | dh_testdir |
732 | dh_testroot | |
733 | dh_installdocs | |
5c0e67b2 RL |
734 | dh_installchangelogs |
735 | dh_installexamples | |
8155b640 | 736 | dh_installmenu |
5c0e67b2 | 737 | dh_link |
3a922bb4 RL |
738 | |
739 | @# Don't strip debug libs at all, and strip cross libs elsewhere | |
740 | @# with the cross host tools until dh_strip gets smarter. | |
174d5c21 RL |
741 | dh_strip -N$(package_gtk_dbg) -N$(package_wxbase_dbg) \ |
742 | -N$(package_wxbase_msw_dev) -N$(package_wxbase_msw_dbg) \ | |
743 | -N$(package_msw_dev) -N$(package_msw_dbg) | |
3a922bb4 | 744 | |
e4c4c1c6 RL |
745 | dh_compress |
746 | dh_fixperms | |
afa3e1ed | 747 | dh_makeshlibs -N$(package_gtk_py) -V |
e4c4c1c6 | 748 | dh_installdeb |
050207ec | 749 | dh_shlibdeps -ldebian/$(package_gtk_lib)/usr/lib |
e4c4c1c6 RL |
750 | dh_gencontrol |
751 | dh_md5sums | |
752 | dh_builddeb | |
753 | ||
f6bcfd97 | 754 | # Build architecture-independent files here. |
050207ec RL |
755 | # Note that you currently can't build the indep packages without first |
756 | # building the arch specific package files needed to create them. | |
3abb92ce | 757 | binary-indep: build_all install |
3a922bb4 | 758 | $(MAKE) -f debian/rules \ |
a0b03701 RL |
759 | 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)" \ |
760 | binary-common | |
f6bcfd97 | 761 | |
050207ec RL |
762 | # Build just the architecture-dependent files here. |
763 | binary-arch: build_arch install_arch | |
3a922bb4 | 764 | $(MAKE) -f debian/rules \ |
a0b03701 RL |
765 | 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)" \ |
766 | binary-common | |
f6bcfd97 BP |
767 | |
768 | # Build all packages target. | |
769 | binary: binary-arch binary-indep | |
770 | ||
3a922bb4 RL |
771 | # This is a special target for building the wxMSW-cross packages. |
772 | # It's not currently called during the official package build run | |
773 | # but may be run separately to build the extra packages. | |
774 | # There is an implied build dep on the mingw32 cross compiler | |
775 | # that is not in the control file. | |
776 | binary-cross: control-files-stamp $(install_all_cross) | |
777 | $(MAKE) -f debian/rules \ | |
a0b03701 RL |
778 | DH_OPTIONS="-p$(package_wxbase_msw_dev) -p$(package_wxbase_msw_dbg) -p$(package_msw_dev) -p$(package_msw_dbg) -p$(package_headers_msw)" \ |
779 | binary-common | |
3a922bb4 | 780 | |
f6bcfd97 BP |
781 | |
782 | ############################################################################ | |
783 | # | |
784 | # Some rules to build a subset of the complete list of packages that can be | |
785 | # built from CVS. Beware that packages produced with these rules may *NOT* | |
786 | # be compatible with packages built using the 'binary' target or even with | |
787 | # Debian policy. Do not distribute packages built with these rules, they | |
788 | # are currently useful for rapid in-house testing by developers only. | |
789 | ||
790 | # libwxgtk shared lib package | |
791 | binary-gtk: control-files-stamp install-gtk-lib install-headers | |
792 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_lib) -p$(package_headers)" binary-common | |
793 | ||
794 | binary-gtk-dev: control-files-stamp install-gtk-dev install-headers | |
795 | $(MAKE) -f debian/rules \ | |
796 | DH_OPTIONS="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \ | |
797 | binary-common | |
798 | ||
799 | binary-gtk-dbg: control-files-stamp install-gtk-dbg install-headers | |
800 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_dbg) -p$(package_headers)" binary-common | |
801 | ||
802 | # libwxbase shared lib package | |
803 | binary-wxbase: control-files-stamp install-wxbase-lib install-headers | |
804 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_wxbase_lib) -p$(package_headers)" binary-common | |
805 | ||
806 | binary-wxbase-dev: control-files-stamp install-wxbase-dev install-headers | |
807 | $(MAKE) -f debian/rules \ | |
808 | DH_OPTIONS="-p$(package_wxbase_lib) -p$(package_wxbase_dev) -p$(package_headers)" \ | |
809 | binary-common | |
810 | ||
811 | binary-wxbase-dbg: control-files-stamp install-wxbase-dbg install-headers | |
812 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_wxbase_dbg) -p$(package_headers)" binary-common | |
813 | ||
7b7a7637 RL |
814 | binary-univ: control-files-stamp install-gtk-univ |
815 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_univ)" binary-common | |
816 | ||
f6bcfd97 BP |
817 | # docs package |
818 | binary-doc: control-files-stamp install-doc | |
819 | $(MAKE) -f debian/rules DH_OPTIONS=-p$(package_doc) binary-common | |
820 | ||
76314141 RL |
821 | binary-fast:control-files-stamp install-gtk-dbg install-msw-dev install-headers install-headers-msw |
822 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_dbg) -p$(package_msw_dev) -p$(package_headers) -p$(package_headers_msw)" binary-common | |
823 | ||
f6bcfd97 | 824 | |
3abb92ce | 825 | .PHONY: build build_all build_arch clean binary-indep binary-arch binary binary-common \ |
050207ec | 826 | binary-gtk binary-gtk-dev binary-gtk-dbg binary-wxbase binary-wxbase-dev \ |
3a922bb4 RL |
827 | binary-wxbase-dbg binary-doc binary-cross \ |
828 | install install_arch install-wxbase-lib \ | |
050207ec RL |
829 | install-wxbase-dev install-wxbase-dbg install-gtk-lib install-gtk-dev \ |
830 | install-gtk-dbg install-gtk-contrib install-gtk-contrib-dev \ | |
3a922bb4 | 831 | install-gtk-py install-headers install-i18n install-doc install-examples \ |
4fb788e4 RL |
832 | install-wxbase-msw-dev install-msw-dev install-headers-msw \ |
833 | install-wxbase-msw-dbg install-msw-dbg | |
f6bcfd97 | 834 |