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