Debian Codegraph @

mysql++.bkl-merge

raw
1 <?xml version="1.0"?>
2 <makefile>
3 <requires version="0.2.9"/>
4 <using module="datafiles"/>
5 <include file="presets/simple.bkl"/>
6
7 <set var="DDD">$(DOLLAR)$(DOLLAR)d</set>
8 <set var="DDE">$(DOLLAR)$(DOLLAR)e</set>
9 <set var="DDF">$(DOLLAR)$(DOLLAR)f</set>
10
11 <set var="STABLEABI">3.1.0</set>
12 <set var="OLDABIDIR">../$(STABLEABI)/abi_dumps/mysqlpp</set>
13 <set var="NEWABIDIR">./abi_dumps/mysqlpp</set>
14
15 <set var="PLATFORM_WINDOWS_NATIVE">no</set>
16 <set var="THREAD_TYPE">single</set>
17 <if cond="FORMAT in ['msvs2003prj', 'msvs2005prj', 'msvs2008prj', 'mingw']">
18 <set var="PLATFORM_WINDOWS_NATIVE">yes</set>
19 <set var="THREAD_TYPE">multi</set>
20 </if>
21
22 <option name="BUILD">
23 <values>debug,release</values>
24 <values-description>Debug,Release</values-description>
25 <default-value>debug</default-value>
26 <description>
27 Type of compiled binaries
28 </description>
29 </option>
30
31 <set var="MYSQL_WIN_DIR">
32 C:\Program Files\MySQL\MySQL Connector C 6.1
33 </set>
34
35 <set var="DEBUGINFO">
36 <if cond="BUILD=='debug'">on</if>
37 <if cond="BUILD=='release'">off</if>
38 </set>
39
40 <set var="OPTIMIZE_FLAG">
41 <if cond="BUILD=='debug'">off</if>
42 <if cond="BUILD=='release'">speed</if>
43 </set>
44
45 <!-- This convoluted syntax adds "_d" to the end of library and DLL
46 file names for VC++ and Xcode, in debug mode only. -->
47 <set var="DEBUG_SUFFIX"/>
48 <set var="DEBUG_SUFFIX">
49 <if cond="FORMAT in ['msvs2003prj', 'msvs2005prj', 'msvs2008prj', 'xcode2'] and BUILD=='debug'">_d</if>
50 </set>
51
52 <set var="BUILDDOCS">yes</set>
53 <set var="BUILDEXAMPLES">yes</set>
54 <set var="BUILDLIBRARY">yes</set>
55 <set var="BUILDTEST">yes</set>
56 <set var="HEADER_DIR">$(PREFIX)/include/mysql++</set>
57
58 <if cond="FORMAT in ['msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
59 <set-srcdir>..</set-srcdir>
60 </if>
61
62 <if cond="BUILDLIBRARY=='yes'">
63 <dll id="mysqlpp">
64 <dllname>mysqlpp$(DEBUG_SUFFIX)</dllname>
65 <libname>mysqlpp$(DEBUG_SUFFIX)</libname>
66 <so_version>3.2.5</so_version>
67
68 <sources>
69 lib/beemutex.cpp
70 lib/cmdline.cpp
71 lib/connection.cpp
72 lib/cpool.cpp
73 lib/datetime.cpp
74 lib/dbdriver.cpp
75 lib/field_names.cpp
76 lib/field_types.cpp
77 lib/manip.cpp
78 lib/myset.cpp
79 lib/mysql++.cpp
80 lib/mystring.cpp
81 lib/null.cpp
82 lib/options.cpp
83 lib/qparms.cpp
84 lib/query.cpp
85 lib/result.cpp
86 lib/row.cpp
87 lib/scopedconnection.cpp
88 lib/sql_buffer.cpp
89 lib/sqlstream.cpp
90 lib/ssqls2.cpp
91 lib/stadapter.cpp
92 lib/tcp_connection.cpp
93 lib/transaction.cpp
94 lib/type_info.cpp
95 lib/uds_connection.cpp
96 lib/utility.cpp
97 lib/vallist.cpp
98 lib/wnp_connection.cpp
99 </sources>
100
101 <debug-info>$(DEBUGINFO)</debug-info>
102 <optimize>$(OPTIMIZE_FLAG)</optimize>
103
104 <threading>$(THREAD_TYPE)</threading>
105 <cxx-rtti>on</cxx-rtti>
106 <cxx-exceptions>on</cxx-exceptions>
107
108 <install-to>$(LIBDIR)</install-to>
109
110 <if cond="PLATFORM_WINDOWS_NATIVE=='yes'">
111 <define>UNICODE</define>
112 <define>_UNICODE</define>
113 <sys-lib>wsock32</sys-lib>
114 </if>
115
116 <if cond="FORMAT in ['msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
117 <define>MYSQLPP_MAKING_DLL</define>
118 <define>HAVE_MYSQL_SSL_SET</define>
119 <include>$(MYSQL_WIN_DIR)\include</include>
120 <lib-path>$(MYSQL_WIN_DIR)\lib</lib-path>
121 <sys-lib>libmysql</sys-lib>
122 </if>
123
124 <if cond="FORMAT=='mingw'">
125 <define>MYSQLPP_NO_DLL</define>
126 <define>HAVE_MYSQL_SSL_SET</define>
127 <include>"$(MYSQL_WIN_DIR)\include"</include>
128 <ldflags>-Wl,--enable-stdcall-fixup</ldflags>
129 <lib-path>"$(MYSQL_WIN_DIR)\lib"</lib-path>
130 <sys-lib>mysql</sys-lib>
131 </if>
132
133 <if cond="FORMAT=='autoconf'">
134 <depends>lib/ssqls.h</depends>
135 <depends>lib/querydef.h</depends>
136
137 <cxxflags>@PTHREAD_CFLAGS@</cxxflags>
138 <include>.</include>
139 <include>@MYSQL_C_INC_DIR@</include>
140 <ldflags>-L@MYSQL_C_LIB_DIR@</ldflags>
141 <ldflags>-l@MYSQL_C_LIB_NAME@ @PTHREAD_LIBS@ @MYSQLPP_EXTRA_LIBS@</ldflags>
142 </if>
143
144 <if cond="FORMAT=='xcode2'">
145 <define>HAVE_POSIX_GETOPT</define>
146 <define>MYSQLPP_XCODE</define>
147 <include>/usr/local/mysql/include</include>
148 <ldflags>-lmysqlclient</ldflags>
149 <!-- Assume C API files came from MySQL.com DMGs, not source
150 tarball, Fink, etc., inferring preference from use of Xcode. -->
151 <lib-path>/usr/local/mysql/lib</lib-path>
152 </if>
153 </dll>
154
155 <data-files>
156 <files>lib/*.h</files>
157 <install-to>$(HEADER_DIR)</install-to>
158 </data-files>
159 </if> <!-- build library -->
160
161 <!-- Set up build options common to all built executables -->
162 <template id="programs">
163 <if cond="BUILDLIBRARY=='yes'">
164 <depends>mysqlpp</depends>
165 </if>
166
167 <threading>$(THREAD_TYPE)</threading>
168 <cxx-rtti>on</cxx-rtti>
169 <cxx-exceptions>on</cxx-exceptions>
170 <debug-info>$(DEBUGINFO)</debug-info>
171 <optimize>$(OPTIMIZE_FLAG)</optimize>
172
173 <if cond="FORMAT in ['autoconf', 'gnu', 'xcode2']">
174 <include>lib</include>
175 <include>@MYSQL_C_INC_DIR@</include>
176 <lib-path>@MYSQL_C_LIB_DIR@</lib-path>
177 <lib-path>.</lib-path>
178 </if>
179
180 <if cond="FORMAT in ['msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
181 <include>../lib</include>
182 </if>
183
184 <if cond="FORMAT=='xcode2'">
185 <define>HAVE_POSIX_GETOPT</define>
186 <define>MYSQLPP_XCODE</define>
187 <include>/usr/local/mysql/include</include>
188 <ldflags>-lmysqlclient</ldflags>
189 <lib-path>/usr/local/mysql/lib</lib-path>
190 </if>
191
192 <if cond="PLATFORM_WINDOWS_NATIVE=='yes'">
193 <define>UNICODE</define>
194 <define>_UNICODE</define>
195 </if>
196
197 <if cond="FORMAT=='autoconf'">
198 <cxxflags>@PTHREAD_CFLAGS@</cxxflags>
199 <ldflags>-l@MYSQL_C_LIB_NAME@ @PTHREAD_LIBS@ @MYSQLPP_EXTRA_LIBS@</ldflags>
200 <warnings>max</warnings>
201 <sys-lib>mysqlpp</sys-lib>
202 </if>
203
204 <if cond="FORMAT=='mingw'">
205 <define>MYSQLPP_NO_DLL</define>
206 <ldflags>
207 -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-stdcall-fixup
208 </ldflags>
209 <include>lib</include>
210 <include>"$(MYSQL_WIN_DIR)\include"</include>
211 <lib-path>"$(MYSQL_WIN_DIR)\lib"</lib-path>
212 <lib-path>.</lib-path>
213 <sys-lib>mysql</sys-lib>
214 <sys-lib>mysqlpp$(DEBUG_SUFFIX)</sys-lib>
215 </if>
216
217 <if cond="FORMAT in ['msvs2003prj', 'msvs2005prj', 'msvs2008prj']">
218 <lib-path>$(BUILD)</lib-path>
219 <include>$(MYSQL_WIN_DIR)\include</include>
220 <lib-path>$(MYSQL_WIN_DIR)\lib</lib-path>
221 <sys-lib>mysqlpp$(DEBUG_SUFFIX)</sys-lib>
222 <sys-lib>libmysql</sys-lib>
223 </if>
224
225 <if cond="FORMAT=='gnu'">
226 <include>/usr/include/mysql</include>
227 <include>/usr/include/mysql++</include>
228 <sys-lib>mysqlpp</sys-lib>
229 <sys-lib>mysqlclient</sys-lib>
230 </if>
231
232 <if cond="FORMAT=='xcode2'">
233 <include>/usr/local/mysql/include</include>
234 <sys-lib>mysqlclient</sys-lib>
235 <sys-lib>mysqlpp$(DEBUG_SUFFIX)</sys-lib>
236 </if>
237 </template>
238
239 <if cond="BUILDLIBRARY=='yes'">
240 <!-- SSQLS v2 parser convenience library -->
241 <template id="ssqlsv2">
242 <depends>ssqls2parse</depends>
243 <sys-lib>mysqlpp_ssqls2parse</sys-lib>
244 <depends>mysqlpp</depends>
245 <sys-lib>mysqlpp</sys-lib>
246 </template>
247
248 <lib id="ssqls2parse" template="programs">
249 <libname>mysqlpp_ssqls2parse</libname>
250 <sources>ssx/parsev2.cpp</sources>
251 <include>.</include>
252 <depends>mysqlpp</depends>
253 <sys-lib>mysqlpp</sys-lib>
254 </lib>
255
256 <!-- Build rules for ssqlsxlat tool -->
257 <exe id="ssqlsxlat" template="programs,ssqlsv2">
258 <sources>ssx/genv2.cpp</sources>
259 <sources>ssx/main.cpp</sources>
260 </exe>
261 </if>
262
263 <!-- Define library testing programs' output targets, if enabled -->
264 <if cond="BUILDTEST=='yes'">
265 <exe id="test_array_index" template="programs">
266 <sources>test/array_index.cpp</sources>
267 </exe>
268 <exe id="test_cpool" template="programs">
269 <sources>test/cpool.cpp</sources>
270 </exe>
271 <exe id="test_datetime" template="programs">
272 <sources>test/datetime.cpp</sources>
273 </exe>
274 <exe id="test_inttypes" template="programs">
275 <sources>test/inttypes.cpp</sources>
276 </exe>
277 <exe id="test_insertpolicy" template="programs">
278 <sources>test/insertpolicy.cpp</sources>
279 </exe>
280 <exe id="test_manip" template="programs">
281 <sources>test/manip.cpp</sources>
282 </exe>
283 <if cond="FORMAT!='msvs2003prj'">
284 <!-- VC++ 2003 can't compile this -->
285 <exe id="test_null_comparison" template="programs">
286 <sources>test/null_comparison.cpp</sources>
287 </exe>
288 </if>
289 <exe id="test_query_copy" template="programs">
290 <sources>test/query_copy.cpp</sources>
291 </exe>
292 <if cond="FORMAT!='msvs2003prj'">
293 <!-- VC++ 2003 can't compile this -->
294 <exe id="test_qssqls" template="programs">
295 <sources>test/qssqls.cpp</sources>
296 </exe>
297 </if>
298 <exe id="test_qstream" template="programs">
299 <sources>test/qstream.cpp</sources>
300 </exe>
301 <exe id="test_sqlstream" template="programs">
302 <sources>test/sqlstream.cpp</sources>
303 </exe>
304 <if cond="BUILDLIBRARY=='yes'">
305 <exe id="test_ssqls2" template="programs,ssqlsv2">
306 <sources>test/ssqls2.cpp</sources>
307 <depends>ssqls2parse</depends>
308 <sys-lib>mysqlpp_ssqls2parse</sys-lib>
309 </exe>
310 </if>
311 <if cond="FORMAT!='msvs2003prj'">
312 <!-- VC++ 2003 can't compile this -->
313 <exe id="test_string" template="programs">
314 <sources>test/string.cpp</sources>
315 </exe>
316 </if>
317 <exe id="test_tcp" template="programs">
318 <sources>test/tcp.cpp</sources>
319 </exe>
320 <exe id="test_uds" template="programs">
321 <sources>test/uds.cpp</sources>
322 </exe>
323 <exe id="test_wnp" template="programs">
324 <sources>test/wnp.cpp</sources>
325 </exe>
326 </if> <!-- build library test programs -->
327
328 <!-- Define example programs' output targets, if enabled -->
329 <if cond="BUILDEXAMPLES=='yes'">
330 <!-- Options specific to examples that depend on libexcommon -->
331 <template id="libexcommon-user">
332 <depends>excommon</depends>
333 <sys-lib>mysqlpp_excommon</sys-lib>
334 </template>
335
336 <!-- Convenience library of routines used by most examples -->
337 <lib id="excommon" template="programs">
338 <libname>mysqlpp_excommon</libname>
339 <sources>examples/printdata.cpp</sources>
340 </lib>
341
342 <!-- The examples themselves -->
343 <if cond="FORMAT!='msvs2003prj'">
344 <!-- VC++ 2003 can't compile current SSQLS code -->
345 <exe id="cgi_jpeg" template="libexcommon-user,programs">
346 <sources>examples/cgi_jpeg.cpp</sources>
347 </exe>
348 </if>
349 <exe id="cpool" template="libexcommon-user,programs">
350 <sources>examples/cpool.cpp</sources>
351 </exe>
352 <exe id="dbinfo" template="libexcommon-user,programs">
353 <sources>examples/dbinfo.cpp</sources>
354 </exe>
355 <exe id="deadlock" template="libexcommon-user,programs">
356 <sources>examples/deadlock.cpp</sources>
357 </exe>
358 <exe id="fieldinf" template="libexcommon-user,programs">
359 <sources>examples/fieldinf.cpp</sources>
360 </exe>
361 <if cond="FORMAT!='msvs2003prj'">
362 <!-- VC++ 2003 can't compile current SSQLS code -->
363 <exe id="for_each" template="libexcommon-user,programs">
364 <sources>examples/for_each.cpp</sources>
365 </exe>
366 </if>
367 <exe id="load_jpeg" template="libexcommon-user,programs">
368 <sources>examples/load_jpeg.cpp</sources>
369 </exe>
370 <exe id="multiquery" template="libexcommon-user,programs">
371 <sources>examples/multiquery.cpp</sources>
372 </exe>
373 <exe id="resetdb" template="libexcommon-user,programs">
374 <sources>examples/resetdb.cpp</sources>
375 </exe>
376 <exe id="simple1" template="libexcommon-user,programs">
377 <sources>examples/simple1.cpp</sources>
378 </exe>
379 <exe id="simple2" template="libexcommon-user,programs">
380 <sources>examples/simple2.cpp</sources>
381 </exe>
382 <exe id="simple3" template="libexcommon-user,programs">
383 <sources>examples/simple3.cpp</sources>
384 </exe>
385 <if cond="FORMAT!='msvs2003prj'">
386 <!-- VC++ 2003 can't compile current SSQLS code -->
387 <exe id="ssqls1" template="libexcommon-user,programs">
388 <sources>examples/ssqls1.cpp</sources>
389 </exe>
390 <exe id="ssqls2" template="libexcommon-user,programs">
391 <sources>examples/ssqls2.cpp</sources>
392 </exe>
393 <exe id="ssqls3" template="libexcommon-user,programs">
394 <sources>examples/ssqls3.cpp</sources>
395 </exe>
396 <exe id="ssqls4" template="libexcommon-user,programs">
397 <sources>examples/ssqls4.cpp</sources>
398 </exe>
399 <exe id="ssqls5" template="libexcommon-user,programs">
400 <sources>examples/ssqls5.cpp</sources>
401 </exe>
402 <exe id="ssqls6" template="libexcommon-user,programs">$
403 <sources>examples/ssqls6.cpp</sources>
404 </exe>$
405 <exe id="store_if" template="libexcommon-user,programs">
406 <sources>examples/store_if.cpp</sources>
407 </exe>
408 </if>
409 <exe id="tquery1" template="libexcommon-user,programs">
410 <sources>examples/tquery1.cpp</sources>
411 </exe>
412 <exe id="tquery2" template="libexcommon-user,programs">
413 <sources>examples/tquery2.cpp</sources>
414 </exe>
415 <exe id="tquery3" template="libexcommon-user,programs">
416 <sources>examples/tquery3.cpp</sources>
417 </exe>
418 <exe id="tquery4" template="libexcommon-user,programs">
419 <sources>examples/tquery4.cpp</sources>
420 </exe>
421 <if cond="FORMAT!='msvs2003prj'">
422 <!-- VC++ 2003 can't compile current SSQLS code -->
423 <exe id="transaction" template="libexcommon-user,programs">
424 <sources>examples/transaction.cpp</sources>
425 </exe>
426 </if>
427 </if> <!-- build examples -->
428
429 <if cond="FORMAT=='autoconf'">
430 <set var="PKGNAME">@PACKAGE_NAME@-@PACKAGE_VERSION@</set>
431
432 <modify-target target="clean">
433 <command>
434 rm -rf doc/latex doc/pdf ; \
435 cd doc/html/refman ; \
436 for e in dot html map md5 png ; \
437 do \
438 rm -f doxygen.css [a-z]*.$(DDE) ; \
439 done
440 </command>
441 </modify-target>
442
443 <modify-target target="uninstall">
444 <command>
445 -rmdir $(HEADER_DIR)
446 </command>
447 <command>
448 rm -f $(DESTDIR)$(libdir)/$(DLLPREFIX)mysqlpp.$(SO_SUFFIX)
449 </command>
450 </modify-target>
451
452 <action id="Makefile">
453 <depends-on-file>configure.ac</depends-on-file>
454 <depends-on-file>install.hta.in</depends-on-file>
455 <depends-on-file>mysql++.bkl</depends-on-file>
456 <depends-on-file>mysql++.spec.in</depends-on-file>
457 <depends-on-file>doc/userman/userman.dbx.in</depends-on-file>
458 <depends-on-file>lib/Doxyfile.in</depends-on-file>
459 <depends-on-file>lib/mysql++.h.in</depends-on-file>
460 <depends-on-file>ssx/Doxyfile.in</depends-on-file>
461 <command>bakefile_gen</command>
462 <command>./config.status</command>
463 </action>
464
465 <action id="lib/ssqls.h">
466 <command>cd lib ; ./ssqls.pl</command>
467 <depends-on-file>lib/ssqls.pl</depends-on-file>
468 </action>
469
470 <action id="lib/querydef.h">
471 <command>cd lib ; ./querydef.pl</command>
472 <depends-on-file>lib/querydef.pl</depends-on-file>
473 </action>
474
475 <action id="tags">
476 <is-phony/>
477 <command>ctags --recurse=yes .</command>
478 </action>
479 <action id="ctags"><depends>tags</depends></action>
480
481 <action id="doc/html/refman/index.html">
482 <depends-on-file>lib/Doxyfile</depends-on-file>
483 <depends-on-file>lib/*.cpp</depends-on-file>
484 <depends-on-file>lib/*.h</depends-on-file>
485 <command>
486 cd lib ; doxygen > /dev/null
487 </command>
488 </action>
489
490 <action id="doc/html/refman/ssx/index.html">
491 <depends-on-file>ssx/Doxyfile</depends-on-file>
492 <depends-on-file>ssx/*.cpp</depends-on-file>
493 <depends-on-file>ssx/*.h</depends-on-file>
494 <command>
495 cd ssx ; doxygen > /dev/null
496 </command>
497 </action>
498
499 <action id="doc/html/userman/index.html">
500 <depends-on-file>doc/userman/*.dbx</depends-on-file>
501 <depends-on-file>doc/userman/userman.dbx.in</depends-on-file>
502 <command>
503 cd doc/userman ; make html pdf
504 </command>
505 </action>
506
507 <action id="doc">
508 <depends>doc/html/refman/index.html</depends>
509 <depends>doc/html/refman/ssx/index.html</depends>
510 <depends>doc/html/userman/index.html</depends>
511 </action>
512
513 <action id="@PACKAGE_NAME@-@PACKAGE_VERSION@">
514 <!-- Set up package directory -->
515 <command>
516 for d in config doc/html/refman/ssx doc/html/userman \
517 doc/refman doc/userman examples lib ssx test ; \
518 do \
519 mkdir -p $(PKGNAME)/$(DDD) ; \
520 done
521 </command>
522
523 <!-- Copy files into package directory -->
524 <!-- top directory -->
525 <command>
526 cp -RL *.bat *.in *.md *.txt abi.xml aclocal.m4 Bakefiles.bkgen \
527 bootstrap ChangeLog.md cleanmf config.guess config.h \
528 config.sub configure* dtest exrun HACKERS.md install* \
529 Makefile.* mysql++.* osver $(PKGNAME)
530 </command>
531
532 <!-- VC++ project file subdirs -->
533 <command>
534 for d in vc200? ; do \
535 mkdir -p $(PKGNAME)/$(DDD) ; \
536 cp $(DDD)/*.sln $(DDD)/*.vcproj $(PKGNAME)/$(DDD) ; \
537 done
538 </command>
539
540 <!-- config subdir -->
541 <command>cp config/*.m4 $(PKGNAME)/config</command>
542
543 <!-- doc subdir -->
544 <if cond="BUILDDOCS=='yes'">
545 <command>
546 cp -RL doc/README* doc/pdf doc/ssqls-pretty $(PKGNAME)/doc
547 </command>
548 <command>
549 for f in fo2pdf LICENSE.txt Makefile Makefile.hello.* mktxt README.txt \*.dbx \*.in \*.mod \*.txt \*.xsl ; \
550 do \
551 cp doc/userman/$(DDF) $(PKGNAME)/doc/userman ; \
552 done
553 </command>
554 <command>
555 find doc \( -name *.css -o -name *.html \) -exec install {} $(PKGNAME)/{} \;
556 </command>
557 <command>
558 cp doc/html/refman/*.png $(PKGNAME)/doc/html/refman
559 </command>
560 </if>
561 <if cond="BUILDDOCS!='yes'">
562 <!-- We have to copy this file even though we don't
563 build the docs to make configure happy, because it
564 wants to update the version number. -->
565 <command>
566 cp doc/userman/userman.dbx.in $(PKGNAME)/doc/userman
567 </command>
568 </if>
569
570 <!-- examples subdir -->
571 <command>
572 for e in cpp h jpg txt ; \
573 do \
574 cp examples/*.$(DDE) $(PKGNAME)/examples ; \
575 done
576 </command>
577 <command>
578 for d in mfc wforms ; \
579 do \
580 mkdir -p $(PKGNAME)/examples/vstudio/$(DDD) ; \
581 cp examples/vstudio/$(DDD)/* $(PKGNAME)/examples/vstudio/$(DDD) ; \
582 done
583 </command>
584
585 <!-- lib subdir -->
586 <command>
587 cp lib/*.cpp lib/*.h lib/*.in lib/*.pl $(PKGNAME)/lib
588 </command>
589
590 <!-- test subdir -->
591 <command>
592 cp test/*.cpp $(PKGNAME)/test
593 </command>
594
595 <!-- ssx subdir -->
596 <command>
597 cp ssx/*.cpp ssx/*.h ssx/*.in $(PKGNAME)/ssx
598 </command>
599
600 <!-- re-bootstrap it to get a standard configuration -->
601 <command>cd $(PKGNAME) ; ./bootstrap nodoc nomaint</command>
602 <command>rm -f $(PKGNAME)/Makefile</command>
603 <command>rm -f $(PKGNAME)/config.log</command>
604 <command>rm -f $(PKGNAME)/config.status</command>
605 <command>rm -fr $(PKGNAME)/autom4te.cache</command>
606 </action>
607
608 <action id="abicheck">
609 <command>
610 <![CDATA[
611 abi-compliance-checker -lib mysqlpp -dump abi.xml
612 abi-compliance-checker -lib mysqlpp \
613 -old $(OLDABIDIR)/mysqlpp_$(STABLEABI).abi.tar.gz \
614 -new $(NEWABIDIR)/mysqlpp_@[email protected]
615 mv compat_reports/mysqlpp/*/compat_report.html ~/Desktop
616 find compat_reports -empty -delete
617 ]]>
618 </command>
619 </action>
620
621 <action id="dist">
622 <depends>doc</depends>
623 <depends>$(PKGNAME)</depends>
624 <command>tar -chz -f $(PKGNAME).tar.gz $(PKGNAME)</command>
625 <command>rm -rf $(PKGNAME)</command>
626 </action>
627
628 <action id="rpm-prep">
629 <if cond="BUILDDOCS=='yes'">
630 <depends>doc</depends>
631 </if>
632 <depends>dist</depends>
633 <command>cp $(PKGNAME).tar.gz ~/rpmbuild/SOURCES</command>
634 <command>cd ~/rpmbuild/SPECS</command>
635 </action>
636
637 <action id="rpm">
638 <depends>rpm-prep</depends>
639 <command>rpmbuild -ba mysql++.spec</command>
640 </action>
641
642 <action id="srpm">
643 <depends>rpm-prep</depends>
644 <command>rpmbuild -bs mysql++.spec</command>
645 </action>
646
647 <action id="ebuild">
648 <depends>dist</depends>
649 <command>cp $(PKGNAME).tar.gz /usr/portage/distfiles</command>
650 <command>
651 cp mysql++.ebuild /usr/portage/dev-db/mysql++/$(PKGNAME).ebuild
652 </command>
653 <command>
654 ebuild /usr/portage/dev-db/mysql++/$(PKGNAME).ebuild digest
655 </command>
656 </action>
657 </if>
658 </makefile>