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