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