Author: wyoung
Date: Wed Mar 8 01:07:35 2006
New Revision: 1237
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1237&view=rev
Log:
Added a Bakefile rule to ensure that custom.pl is run whenever custom.pl
changes, so custom.h is always newer. Only works in autoconf target.
Could theoretically work in MinGW target, if I cared...
Modified:
branches/v2.1-bakefile/lib/lib.bkl
Modified: branches/v2.1-bakefile/lib/lib.bkl
URL:
http://svn.gna.org/viewcvs/mysqlpp/branches/v2.1-bakefile/lib/lib.bkl?rev=1237&r1=1236&r2=1237&view=diff
==============================================================================
--- branches/v2.1-bakefile/lib/lib.bkl (original)
+++ branches/v2.1-bakefile/lib/lib.bkl Wed Mar 8 01:07:35 2006
@@ -12,8 +12,6 @@
fields.cpp field_types.cpp manip.cpp myset.cpp qparms.cpp
query.cpp result.cpp row.cpp sql_string.cpp string_util.cpp
transaction.cpp type_info.cpp vallist.cpp</sources>
-
- <depends>custom.h</depends>
<debug-info>$(DEBUGINFO)</debug-info>
<include>..</include>
@@ -38,6 +36,8 @@
<install-to>$(LIBDIR)</install-to>
<if cond="FORMAT=='autoconf'">
+ <depends>custom.h</depends>
+
<cxxflags>@PTHREAD_CFLAGS@</cxxflags>
<ldflags>@PTHREAD_LIBS@ @MYSQLPP_EXTRA_LIBS@</ldflags>
<sys-lib>@MYSQL_C_LIB@</sys-lib>
@@ -59,11 +59,12 @@
<install-to>$(HEADER_DIR)</install-to>
</data-files>
- <action id="custom.h">
- <command>./custom.pl</command>
- </action>
+ <if cond="FORMAT=='autoconf'">
+ <action id="custom.h">
+ <command>./custom.pl</command>
+ <depends-on-file>custom.pl</depends-on-file>
+ </action>
- <if cond="FORMAT=='autoconf'">
<action id="tags">
<is-phony/>
<command>( cd .. ; make tags )</command>
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits