]>
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 | |
e0a4aa8a | 16 | # Packages to build: |
5c0e67b2 RL |
17 | package_wxbase_lib=libwxbase$(release) |
18 | package_wxbase_dev=libwxbase$(release)-dev | |
f6bcfd97 | 19 | package_wxbase_dbg=libwxbase$(release)-dbg |
e4c4c1c6 RL |
20 | package_gtk_lib=libwxgtk$(release) |
21 | package_gtk_dev=libwxgtk$(release)-dev | |
f6bcfd97 | 22 | package_gtk_dbg=libwxgtk$(release)-dbg |
e0a4aa8a | 23 | package_gtk_py=libwxgtk$(release)-python |
f6bcfd97 BP |
24 | package_gtk_contrib=libwxgtk$(release)-contrib |
25 | package_gtk_contrib_dev=libwxgtk$(release)-contrib-dev | |
26 | package_headers=wxwin$(release)-headers | |
3ca6a5f0 | 27 | package_i18n=wxwin$(release)-i18n |
e0a4aa8a | 28 | package_doc=wxwin$(release)-doc |
5c0e67b2 | 29 | package_examples=wxwin$(release)-examples |
e4c4c1c6 | 30 | |
e0a4aa8a | 31 | # Build directories: |
5c0e67b2 RL |
32 | objdir_wxbase_shared=objs_wxbase_sh |
33 | objdir_wxbase_static=objs_wxbase_st | |
f6bcfd97 | 34 | objdir_wxbase_debug=objs_wxbase_d |
e4c4c1c6 RL |
35 | objdir_gtk_shared=objs_gtk_sh |
36 | objdir_gtk_static=objs_gtk_st | |
f6bcfd97 | 37 | objdir_gtk_debug=objs_gtk_d |
e0a4aa8a RL |
38 | objdir_doc_cruft=objs_doc_con |
39 | objdir_doc=docs/wxWindows-manual.html | |
5c0e67b2 | 40 | objdir_examples=docs/examples |
3ca6a5f0 | 41 | objdir_i18n=locale |
f6bcfd97 BP |
42 | objdirs=$(objdir_wxbase_shared) $(objdir_wxbase_static) $(objdir_wxbase_debug) \ |
43 | $(objdir_gtk_shared) $(objdir_gtk_static) $(objdir_gtk_debug) \ | |
44 | $(objdir_doc) $(objdir_examples) | |
e4c4c1c6 | 45 | |
afa3e1ed RL |
46 | # note that the i18n package is actually arch indep (once built) |
47 | # but must be built (and installed) during the arch any phase as | |
48 | # it's pulled out of the wxGtk shared lib package. | |
49 | ||
050207ec RL |
50 | # Build stamps: |
51 | build_arch_stamps=build-wxbase-shared-stamp build-wxbase-static-stamp \ | |
52 | build-wxbase-debug-stamp build-gtk-shared-stamp \ | |
53 | build-gtk-static-stamp build-gtk-debug-stamp \ | |
54 | build-contrib-shared-stamp build-contrib-static-stamp \ | |
afa3e1ed | 55 | build-gtk-py-stamp build-i18n-stamp |
e4c4c1c6 | 56 | |
afa3e1ed | 57 | build_indep_stamps=build-examples-stamp build-doc-stamp |
f6bcfd97 | 58 | |
050207ec RL |
59 | build_stamps=$(build_arch_stamps) $(build_indep_stamps) |
60 | ||
61 | # Install targets: | |
62 | install_all_arch=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \ | |
63 | install-gtk-lib install-gtk-dev install-gtk-dbg \ | |
64 | install-gtk-contrib install-gtk-contrib-dev install-gtk-py \ | |
afa3e1ed | 65 | install-headers install-i18n |
050207ec | 66 | |
afa3e1ed | 67 | install_all_indep=install-examples install-doc |
050207ec RL |
68 | |
69 | install_all=$(install_all_arch) $(install_all_indep) | |
e4c4c1c6 RL |
70 | |
71 | ||
afa3e1ed RL |
72 | wxconfig:=$(shell pwd)/$(objdir_gtk_shared)/wx-config \ |
73 | --prefix=$(shell pwd) \ | |
74 | --exec-prefix=$(shell pwd)/$(objdir_gtk_shared) | |
75 | ||
76 | ||
e0a4aa8a RL |
77 | # The Rules: |
78 | ||
e4c4c1c6 RL |
79 | debian/control: debian/control.in |
80 | sed -e 's/=V/$(release)/g' < debian/control.in > debian/control | |
81 | ||
e0a4aa8a RL |
82 | debian/wxwin-doc.doc-base: debian/wxwin-doc.doc-base.in |
83 | sed -e 's/=V/$(release)/g' < debian/wxwin-doc.doc-base.in > debian/wxwin-doc.doc-base | |
84 | ||
f6bcfd97 BP |
85 | control-files-stamp: debian/control debian/wxwin-doc.doc-base |
86 | dh_testdir | |
050207ec | 87 | @for f in dirs postinst; do \ |
f6bcfd97 BP |
88 | echo "generating control file $(package_wxbase_lib).$$f"; \ |
89 | cp debian/libwxbase.$$f debian/$(package_wxbase_lib).$$f; \ | |
90 | done; | |
050207ec | 91 | @for f in dirs files links postinst prerm; do \ |
f6bcfd97 BP |
92 | echo "generating control file $(package_wxbase_dev).$$f"; \ |
93 | cp debian/libwxbase-dev.$$f debian/$(package_wxbase_dev).$$f; \ | |
94 | done; | |
050207ec | 95 | @for f in dirs links postinst prerm; do \ |
f6bcfd97 BP |
96 | echo "generating control file $(package_wxbase_dbg).$$f"; \ |
97 | cp debian/libwxbase-dbg.$$f debian/$(package_wxbase_dbg).$$f; \ | |
98 | done; | |
050207ec | 99 | @for f in dirs postinst; do \ |
f6bcfd97 BP |
100 | echo "generating control file $(package_gtk_lib).$$f"; \ |
101 | cp debian/libwxgtk.$$f debian/$(package_gtk_lib).$$f; \ | |
102 | done; | |
050207ec | 103 | @for f in dirs files links postinst prerm; do \ |
f6bcfd97 BP |
104 | echo "generating control file $(package_gtk_dev).$$f"; \ |
105 | cp debian/libwxgtk-dev.$$f debian/$(package_gtk_dev).$$f; \ | |
106 | done; | |
050207ec | 107 | @for f in dirs links postinst prerm; do \ |
f6bcfd97 BP |
108 | echo "generating control file $(package_gtk_dbg).$$f"; \ |
109 | cp debian/libwxgtk-dbg.$$f debian/$(package_gtk_dbg).$$f; \ | |
110 | done; | |
111 | @for f in dirs docs files postinst prerm; do \ | |
112 | echo "generating control file $(package_gtk_py).$$f"; \ | |
050207ec RL |
113 | sed -e 's/=PY/$(python_dir)/g;s/=V/$(release)/g' < debian/libwxgtk-python.$$f \ |
114 | > debian/$(package_gtk_py).$$f; \ | |
f6bcfd97 | 115 | done; |
050207ec | 116 | @for f in dirs postinst; do \ |
f6bcfd97 BP |
117 | echo "generating control file $(package_gtk_contrib).$$f"; \ |
118 | cp debian/libwxgtk-contrib.$$f debian/$(package_gtk_contrib).$$f; \ | |
119 | done; | |
050207ec | 120 | @for f in dirs files; do \ |
f6bcfd97 BP |
121 | echo "generating control file $(package_gtk_contrib_dev).$$f"; \ |
122 | cp debian/libwxgtk-contrib-dev.$$f debian/$(package_gtk_contrib_dev).$$f; \ | |
123 | done; | |
050207ec | 124 | @for f in dirs files; do \ |
f6bcfd97 BP |
125 | echo "generating control file $(package_headers).$$f"; \ |
126 | cp debian/wxwin-headers.$$f debian/$(package_headers).$$f; \ | |
127 | done; | |
050207ec | 128 | @for f in dirs files; do \ |
3ca6a5f0 BP |
129 | echo "generating control file $(package_i18n).$$f"; \ |
130 | cp debian/wxwin-i18n.$$f debian/$(package_i18n).$$f; \ | |
131 | done; | |
f6bcfd97 BP |
132 | @for f in dirs docs doc-base; do \ |
133 | echo "generating control file $(package_doc).$$f"; \ | |
134 | cp debian/wxwin-doc.$$f debian/$(package_doc).$$f; \ | |
135 | done; | |
050207ec | 136 | @for f in examples; do \ |
f6bcfd97 BP |
137 | echo "generating control file $(package_examples).$$f"; \ |
138 | cp debian/wxwin-examples.$$f debian/$(package_examples).$$f; \ | |
139 | done; | |
140 | touch $@ | |
141 | ||
050207ec | 142 | build_arch: control-files-stamp $(build_arch_stamps) |
3abb92ce RL |
143 | build_all: control-files-stamp $(build_stamps) |
144 | ||
145 | # do nothing until we know which binary target is called | |
146 | build: | |
050207ec | 147 | |
e4c4c1c6 | 148 | |
5c0e67b2 RL |
149 | build-wxbase-shared-stamp: |
150 | dh_testdir | |
151 | mkdir $(objdir_wxbase_shared) | |
152 | cd $(objdir_wxbase_shared) \ | |
f6bcfd97 | 153 | && ../configure --prefix=/usr \ |
050207ec | 154 | --cache-file=../config_deb.cache \ |
f6bcfd97 BP |
155 | --disable-gui \ |
156 | --enable-burnt_name \ | |
157 | --with-zlib=sys \ | |
5c0e67b2 RL |
158 | && $(MAKE) |
159 | touch $@ | |
160 | ||
161 | build-wxbase-static-stamp: | |
162 | dh_testdir | |
163 | mkdir $(objdir_wxbase_static) | |
164 | cd $(objdir_wxbase_static) \ | |
f6bcfd97 | 165 | && ../configure --prefix=/usr \ |
050207ec | 166 | --cache-file=../config_deb.cache \ |
f6bcfd97 BP |
167 | --disable-gui \ |
168 | --disable-shared \ | |
169 | --with-zlib=sys \ | |
170 | && $(MAKE) | |
171 | touch $@ | |
172 | ||
173 | build-wxbase-debug-stamp: | |
174 | dh_testdir | |
175 | mkdir $(objdir_wxbase_debug) | |
176 | cd $(objdir_wxbase_debug) \ | |
177 | && ../configure --prefix=/usr \ | |
050207ec | 178 | --cache-file=../config_deb.cache \ |
f6bcfd97 BP |
179 | --disable-gui \ |
180 | --enable-debug \ | |
181 | --enable-burnt_name \ | |
182 | --with-zlib=sys \ | |
5c0e67b2 RL |
183 | && $(MAKE) |
184 | touch $@ | |
185 | ||
e4c4c1c6 RL |
186 | build-gtk-shared-stamp: |
187 | dh_testdir | |
188 | mkdir $(objdir_gtk_shared) | |
189 | cd $(objdir_gtk_shared) \ | |
f6bcfd97 | 190 | && ../configure --prefix=/usr \ |
050207ec | 191 | --cache-file=../config_deb.cache \ |
f6bcfd97 BP |
192 | --with-gtk \ |
193 | --with-opengl \ | |
194 | --enable-burnt_name \ | |
195 | --with-zlib=sys \ | |
196 | --with-libjpeg=sys \ | |
197 | --with-libpng=sys \ | |
198 | --with-libtiff=sys \ | |
e4c4c1c6 RL |
199 | && $(MAKE) |
200 | touch $@ | |
201 | ||
202 | build-gtk-static-stamp: | |
203 | dh_testdir | |
204 | mkdir $(objdir_gtk_static) | |
205 | cd $(objdir_gtk_static) \ | |
f6bcfd97 | 206 | && ../configure --prefix=/usr \ |
050207ec | 207 | --cache-file=../config_deb.cache \ |
f6bcfd97 BP |
208 | --with-gtk \ |
209 | --with-opengl \ | |
210 | --disable-shared \ | |
211 | --with-zlib=sys \ | |
212 | --with-libjpeg=sys \ | |
213 | --with-libpng=sys \ | |
214 | --with-libtiff=sys \ | |
e4c4c1c6 RL |
215 | && $(MAKE) |
216 | touch $@ | |
217 | ||
f6bcfd97 BP |
218 | build-gtk-debug-stamp: |
219 | dh_testdir | |
220 | mkdir $(objdir_gtk_debug) | |
221 | cd $(objdir_gtk_debug) \ | |
222 | && ../configure --prefix=/usr \ | |
050207ec | 223 | --cache-file=../config_deb.cache \ |
f6bcfd97 BP |
224 | --with-gtk \ |
225 | --with-opengl \ | |
226 | --enable-debug \ | |
227 | --enable-burnt_name \ | |
228 | --with-zlib=sys \ | |
229 | --with-libjpeg=sys \ | |
230 | --with-libpng=sys \ | |
231 | --with-libtiff=sys \ | |
232 | && $(MAKE) | |
233 | touch $@ | |
234 | ||
235 | build-contrib-shared-stamp: build-gtk-shared-stamp | |
236 | dh_testdir | |
050207ec RL |
237 | cd $(objdir_gtk_shared)/contrib/src \ |
238 | && $(MAKE) | |
f6bcfd97 BP |
239 | touch $@ |
240 | ||
241 | build-contrib-static-stamp: build-gtk-static-stamp | |
242 | dh_testdir | |
050207ec RL |
243 | cd $(objdir_gtk_static)/contrib/src \ |
244 | && $(MAKE) | |
f6bcfd97 BP |
245 | touch $@ |
246 | ||
050207ec | 247 | build-gtk-py-stamp: build-gtk-shared-stamp |
e0a4aa8a | 248 | dh_testdir |
050207ec RL |
249 | touch docs/lgpl.txt |
250 | cd wxPython \ | |
afa3e1ed | 251 | && ./setup.py build IN_CVS_TREE=1 WX_CONFIG='$(wxconfig)' |
e0a4aa8a RL |
252 | touch $@ |
253 | ||
f538864d RL |
254 | build-doc-stamp: build-gtk-shared-stamp |
255 | dh_testdir | |
256 | cd $(objdir_gtk_shared)/utils/tex2rtf/src \ | |
e0a4aa8a RL |
257 | && $(MAKE) |
258 | mkdir $(objdir_doc) | |
259 | mkdir $(objdir_doc_cruft) | |
260 | cd $(objdir_doc_cruft) \ | |
261 | && LD_LIBRARY_PATH=../$(objdir_gtk_shared)/lib \ | |
262 | ../$(objdir_gtk_shared)/utils/tex2rtf/src/tex2rtf \ | |
5c0e67b2 | 263 | ../docs/latex/wx/manual.tex ../$(objdir_doc)/wxwin.htm -twice -html |
e0a4aa8a RL |
264 | cp docs/latex/wx/*.gif $(objdir_doc) |
265 | rm -rf $(objdir_doc_cruft) | |
266 | rm -f $(objdir_doc)/wxwin.con $(objdir_doc)/wxwin.hh* \ | |
267 | $(objdir_doc)/wxwin.htx $(objdir_doc)/wxwin.ref | |
f538864d RL |
268 | touch $@ |
269 | ||
5c0e67b2 RL |
270 | build-examples-stamp: |
271 | dh_testdir | |
272 | mkdir $(objdir_examples) | |
273 | cp -a samples $(objdir_examples) | |
274 | cp -a demos $(objdir_examples) | |
f6bcfd97 | 275 | cp -a wxPython/demo $(objdir_examples)/wxPython |
5c0e67b2 RL |
276 | @for d in $(objdir_examples)/demos $(objdir_examples)/samples; do \ |
277 | (cd $$d \ | |
278 | && mv Makefile.in Makefile \ | |
279 | && rm -f configure* \ | |
280 | && find -name 'Makefile.in' -exec rm -f '{}' ';' \ | |
281 | && for f in $$(find -type d); do \ | |
282 | if [ -f $$f/makefile.unx ]; then \ | |
283 | mv $$f/makefile.unx $$f/Makefile; \ | |
284 | fi; \ | |
285 | done) \ | |
286 | done; | |
287 | touch $@ | |
288 | ||
3ca6a5f0 BP |
289 | build-i18n-stamp: build-gtk-shared-stamp |
290 | dh_testdir | |
291 | cd $(objdir_i18n) \ | |
292 | && $(MAKE) allmo | |
293 | touch $@ | |
294 | ||
e4c4c1c6 RL |
295 | clean: debian/control |
296 | dh_testdir | |
297 | dh_testroot | |
050207ec RL |
298 | rm -rf config_deb.cache control-files-stamp $(build_stamps) $(objdirs) |
299 | rm -f docs/lgpl.txt | |
300 | cd wxPython && ./setup.py clean | |
e4c4c1c6 | 301 | dh_clean |
5c0e67b2 RL |
302 | rm -f debian/$(package_wxbase_lib).* |
303 | rm -f debian/$(package_wxbase_dev).* | |
f6bcfd97 | 304 | rm -f debian/$(package_wxbase_dbg).* |
f538864d RL |
305 | rm -f debian/$(package_gtk_lib).* |
306 | rm -f debian/$(package_gtk_dev).* | |
f6bcfd97 | 307 | rm -f debian/$(package_gtk_dbg).* |
e0a4aa8a | 308 | rm -f debian/$(package_gtk_py).* |
f6bcfd97 BP |
309 | rm -f debian/$(package_gtk_contrib).* |
310 | rm -f debian/$(package_gtk_contrib_dev).* | |
311 | rm -f debian/$(package_headers).* | |
3ca6a5f0 | 312 | rm -f debian/$(package_i18n).* |
f538864d | 313 | rm -f debian/$(package_doc).* |
5c0e67b2 | 314 | rm -f debian/$(package_examples).* |
e4c4c1c6 | 315 | |
050207ec RL |
316 | install_arch: build_arch $(install_all_arch) |
317 | ||
3abb92ce | 318 | install: build_all $(install_all) |
f6bcfd97 BP |
319 | |
320 | install-wxbase-lib: DH_OPTIONS=-p$(package_wxbase_lib) | |
321 | install-wxbase-lib: build-wxbase-shared-stamp | |
e0a4aa8a RL |
322 | dh_testdir |
323 | dh_testroot | |
e4c4c1c6 RL |
324 | dh_clean -k |
325 | dh_installdirs | |
f6bcfd97 BP |
326 | cp -a $(objdir_wxbase_shared)/lib/* debian/$(package_wxbase_lib)/usr/lib |
327 | cp $(objdir_wxbase_shared)/wxbase-config debian/$(package_wxbase_lib)/usr/bin/ | |
328 | ||
329 | install-wxbase-dev: DH_OPTIONS=-p$(package_wxbase_dev) | |
330 | install-wxbase-dev: build-wxbase-static-stamp install-wxbase-lib | |
331 | dh_testdir | |
332 | dh_testroot | |
333 | dh_clean -k | |
334 | dh_installdirs | |
335 | dh_movefiles --sourcedir=debian/$(package_wxbase_lib) | |
336 | cp $(objdir_wxbase_static)/lib/*.a debian/$(package_wxbase_dev)/usr/lib | |
337 | ||
338 | install-wxbase-dbg: DH_OPTIONS=-p$(package_wxbase_dbg) | |
339 | install-wxbase-dbg: build-wxbase-debug-stamp | |
340 | dh_testdir | |
341 | dh_testroot | |
342 | dh_clean -k | |
343 | dh_installdirs | |
344 | cp -a $(objdir_wxbase_debug)/lib/* debian/$(package_wxbase_dbg)/usr/lib | |
345 | cp $(objdir_wxbase_debug)/wxbased-config debian/$(package_wxbase_dbg)/usr/bin/ | |
050207ec | 346 | cp debian/lintian-override debian/$(package_wxbase_dbg)/usr/share/lintian/overrides/$(package_wxbase_dbg) |
f6bcfd97 BP |
347 | |
348 | install-gtk-lib: DH_OPTIONS=-p$(package_gtk_lib) | |
349 | install-gtk-lib: build-gtk-shared-stamp | |
350 | dh_testdir | |
351 | dh_testroot | |
352 | dh_clean -k | |
353 | dh_installdirs | |
e4c4c1c6 | 354 | cd $(objdir_gtk_shared) \ |
f6bcfd97 BP |
355 | && $(MAKE) install prefix=`pwd`/../debian/$(package_gtk_lib)/usr |
356 | rm -f debian/$(package_gtk_lib)/usr/bin/wx-config | |
e4c4c1c6 | 357 | |
f6bcfd97 BP |
358 | install-gtk-dev: DH_OPTIONS=-p$(package_gtk_dev) |
359 | install-gtk-dev: build-gtk-static-stamp install-gtk-lib | |
360 | dh_testdir | |
361 | dh_testroot | |
362 | dh_clean -k | |
363 | dh_installdirs | |
364 | dh_movefiles --sourcedir=debian/$(package_gtk_lib) | |
365 | cp $(objdir_gtk_static)/lib/libwx_gtk*.a debian/$(package_gtk_dev)/usr/lib | |
e4c4c1c6 | 366 | |
f6bcfd97 BP |
367 | install-gtk-dbg: DH_OPTIONS=-p$(package_gtk_dbg) |
368 | install-gtk-dbg: build-gtk-debug-stamp | |
369 | dh_testdir | |
370 | dh_testroot | |
371 | dh_clean -k | |
372 | dh_installdirs | |
373 | cp -a $(objdir_gtk_debug)/lib/* debian/$(package_gtk_dbg)/usr/lib | |
374 | cp $(objdir_gtk_debug)/wxgtkd-config debian/$(package_gtk_dbg)/usr/bin/ | |
050207ec | 375 | cp debian/lintian-override debian/$(package_gtk_dbg)/usr/share/lintian/overrides/$(package_gtk_dbg) |
e4c4c1c6 | 376 | |
f6bcfd97 BP |
377 | install-gtk-contrib: DH_OPTIONS=-p$(package_gtk_contrib) |
378 | install-gtk-contrib: build-contrib-shared-stamp | |
e4c4c1c6 RL |
379 | dh_testdir |
380 | dh_testroot | |
f6bcfd97 BP |
381 | dh_clean -k |
382 | dh_installdirs | |
383 | cd $(objdir_gtk_shared)/contrib/src \ | |
384 | && $(MAKE) install prefix=`pwd`/../../../debian/$(package_gtk_contrib)/usr | |
385 | ||
386 | install-gtk-contrib-dev: DH_OPTIONS=-p$(package_gtk_contrib_dev) | |
387 | install-gtk-contrib-dev: build-contrib-static-stamp install-gtk-dev | |
388 | dh_testdir | |
389 | dh_testroot | |
390 | dh_clean -k | |
391 | dh_installdirs | |
392 | dh_movefiles --sourcedir=debian/$(package_gtk_contrib) | |
393 | cp $(objdir_gtk_static)/lib/*.a debian/$(package_gtk_contrib_dev)/usr/lib | |
394 | rm -f debian/$(package_gtk_contrib_dev)/usr/lib/libwx_gtk*.a | |
395 | ||
396 | install-gtk-py: DH_OPTIONS=-p$(package_gtk_py) | |
050207ec | 397 | install-gtk-py: build-gtk-py-stamp |
f6bcfd97 BP |
398 | dh_testdir |
399 | dh_testroot | |
400 | dh_clean -k | |
401 | dh_installdirs | |
050207ec RL |
402 | cd wxPython \ |
403 | && ./setup.py install --prefix=`pwd`/../debian/$(package_gtk_py)/usr | |
404 | find debian/$(package_gtk_py)/usr/lib/$(python_dir)/site-packages/wxPython \ | |
f6bcfd97 BP |
405 | -name '*.py?' -exec rm '{}' ';' |
406 | ||
407 | install-headers: DH_OPTIONS=-p$(package_headers) | |
408 | install-headers: install-gtk-lib | |
409 | dh_testdir | |
410 | dh_testroot | |
411 | dh_clean -k | |
412 | dh_installdirs | |
413 | dh_movefiles --sourcedir=debian/$(package_gtk_lib) | |
414 | dh_installmanpages \ | |
e4c4c1c6 RL |
415 | ansi2knr.1 \ |
416 | jpegtran.1 \ | |
f6bcfd97 | 417 | libpng.3 \ |
e4c4c1c6 | 418 | libpngpf.3 \ |
f6bcfd97 | 419 | zlib.3 \ |
e4c4c1c6 | 420 | png.5 |
f6bcfd97 | 421 | |
3ca6a5f0 BP |
422 | install-i18n: DH_OPTIONS=-p$(package_i18n) |
423 | install-i18n: build-i18n-stamp install-gtk-lib | |
424 | dh_testdir | |
425 | dh_testroot | |
426 | dh_clean -k | |
427 | dh_installdirs | |
428 | dh_movefiles --sourcedir=debian/$(package_gtk_lib) | |
429 | ||
f6bcfd97 BP |
430 | install-doc: DH_OPTIONS=-p$(package_doc) |
431 | install-doc: build-doc-stamp | |
432 | dh_testdir | |
433 | dh_testroot | |
434 | dh_clean -k | |
435 | dh_installdirs | |
436 | ||
437 | install-examples: DH_OPTIONS=-p$(package_examples) | |
438 | install-examples: build-examples-stamp | |
439 | dh_testdir | |
440 | dh_testroot | |
441 | dh_clean -k | |
442 | dh_installdirs | |
443 | ||
444 | binary-common: | |
f6bcfd97 BP |
445 | dh_testdir |
446 | dh_testroot | |
447 | dh_installdocs | |
5c0e67b2 RL |
448 | dh_installchangelogs |
449 | dh_installexamples | |
450 | dh_link | |
050207ec | 451 | dh_strip -N$(package_gtk_dbg) -N$(package_wxbase_dbg) |
e4c4c1c6 RL |
452 | dh_compress |
453 | dh_fixperms | |
afa3e1ed | 454 | dh_makeshlibs -N$(package_gtk_py) -V |
e4c4c1c6 | 455 | dh_installdeb |
050207ec | 456 | dh_shlibdeps -ldebian/$(package_gtk_lib)/usr/lib |
e4c4c1c6 RL |
457 | dh_gencontrol |
458 | dh_md5sums | |
459 | dh_builddeb | |
460 | ||
f6bcfd97 | 461 | # Build architecture-independent files here. |
050207ec RL |
462 | # Note that you currently can't build the indep packages without first |
463 | # building the arch specific package files needed to create them. | |
3abb92ce | 464 | binary-indep: build_all install |
f6bcfd97 BP |
465 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
466 | ||
050207ec RL |
467 | # Build just the architecture-dependent files here. |
468 | binary-arch: build_arch install_arch | |
f6bcfd97 BP |
469 | $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common |
470 | ||
471 | # Build all packages target. | |
472 | binary: binary-arch binary-indep | |
473 | ||
474 | ||
475 | ############################################################################ | |
476 | # | |
477 | # Some rules to build a subset of the complete list of packages that can be | |
478 | # built from CVS. Beware that packages produced with these rules may *NOT* | |
479 | # be compatible with packages built using the 'binary' target or even with | |
480 | # Debian policy. Do not distribute packages built with these rules, they | |
481 | # are currently useful for rapid in-house testing by developers only. | |
482 | ||
483 | # libwxgtk shared lib package | |
484 | binary-gtk: control-files-stamp install-gtk-lib install-headers | |
485 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_lib) -p$(package_headers)" binary-common | |
486 | ||
487 | binary-gtk-dev: control-files-stamp install-gtk-dev install-headers | |
488 | $(MAKE) -f debian/rules \ | |
489 | DH_OPTIONS="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \ | |
490 | binary-common | |
491 | ||
492 | binary-gtk-dbg: control-files-stamp install-gtk-dbg install-headers | |
493 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_dbg) -p$(package_headers)" binary-common | |
494 | ||
495 | # libwxbase shared lib package | |
496 | binary-wxbase: control-files-stamp install-wxbase-lib install-headers | |
497 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_wxbase_lib) -p$(package_headers)" binary-common | |
498 | ||
499 | binary-wxbase-dev: control-files-stamp install-wxbase-dev install-headers | |
500 | $(MAKE) -f debian/rules \ | |
501 | DH_OPTIONS="-p$(package_wxbase_lib) -p$(package_wxbase_dev) -p$(package_headers)" \ | |
502 | binary-common | |
503 | ||
504 | binary-wxbase-dbg: control-files-stamp install-wxbase-dbg install-headers | |
505 | $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_wxbase_dbg) -p$(package_headers)" binary-common | |
506 | ||
507 | # docs package | |
508 | binary-doc: control-files-stamp install-doc | |
509 | $(MAKE) -f debian/rules DH_OPTIONS=-p$(package_doc) binary-common | |
510 | ||
511 | ||
3abb92ce | 512 | .PHONY: build build_all build_arch clean binary-indep binary-arch binary binary-common \ |
050207ec RL |
513 | binary-gtk binary-gtk-dev binary-gtk-dbg binary-wxbase binary-wxbase-dev \ |
514 | binary-wxbase-dbg binary-doc install install_arch install-wxbase-lib \ | |
515 | install-wxbase-dev install-wxbase-dbg install-gtk-lib install-gtk-dev \ | |
516 | install-gtk-dbg install-gtk-contrib install-gtk-contrib-dev \ | |
517 | install-gtk-py install-headers install-i18n install-doc install-examples | |
f6bcfd97 | 518 |