Author: wyoung
Date: Fri Jan 12 09:11:14 2007
New Revision: 1362
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1362&view=rev
Log:
Added all the 'dist' type targets, which got lost in conversion to
single Bakefile.
Modified:
trunk/mysql++.bkl
Modified: trunk/mysql++.bkl
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/mysql%2B%2B.bkl?rev=1362&r1=1361&r2=1362&view=diff
==============================================================================
--- trunk/mysql++.bkl (original)
+++ trunk/mysql++.bkl Fri Jan 12 09:11:14 2007
@@ -242,6 +242,20 @@
</if> <!-- build examples -->
<if cond="FORMAT=='autoconf'">
+ <set var="PKGNAME">[EMAIL PROTECTED]@</set>
+
+ <modify-target target="clean">
+ <command>rm -f libmysqlpp.so.2</command>
+ </modify-target>
+
+ <modify-target target="install">
+ <command>(cd lib && $(DOLLAR)(MAKE)
install)</command>
+ </modify-target>
+
+ <modify-target target="uninstall">
+ <command>(cd lib && $(DOLLAR)(MAKE)
uninstall)</command>
+ </modify-target>
+
<action id="lib/custom.h">
<command>cd lib ; ./custom.pl</command>
<depends-on-file>lib/custom.pl</depends-on-file>
@@ -260,7 +274,99 @@
<action id="refman">
<command>doxygen</command>
- <command>cd doc/refman/latex && make pdf
&& mv refman.pdf ../../mysqlpp-refman.pdf</command>
+ <command>
+ cd doc/refman/latex && \
+ make pdf && \
+ mv refman.pdf ../../mysqlpp-refman.pdf
+ </command>
+ </action>
+
+ <action id="dist">
+ <depends>dist-build</depends>
+ <command>tar czf $(PKGNAME).tar.gz $(PKGNAME)</command>
+ <command>rm -rf $(PKGNAME)</command>
+ </action>
+
+ <action id="dist-build">
+ <!-- Set up package directory -->
+ <command>
+ for d in config doc/refman/html
doc/userman/html examples lib ; \
+ do \
+ mkdir -p $(PKGNAME)/$(DBLDOLLAR)d ; \
+ done
+ </command>
+
+ <!-- Copy files into package directory -->
+ <!-- top directory -->
+ <command>
+ cp Bakefiles.bkgen bootstrap ChangeLog cleanmf \
+ config.guess config.h.in config.sub
configure* \
+ COPYING CREDITS HACKERS INSTALL
install.bat \
+ install-sh libmysqlclient.def LICENSE
Makefile.* \
+ mysql++.* mysql++_*.ds? osver README*
rebake \
+ reconf Wishlist $(PKGNAME)
+ </command>
+
+ <!-- config subdir -->
+ <command>cp config/*.m4 $(PKGNAME)/config</command>
+
+ <!-- doc subdir -->
+ <command>
+ cp doc/README* doc/*.pdf doc/ssqls-pretty
$(PKGNAME)/doc
+ </command>
+ <command>
+ for f in LICENSE Makefile mktxt README
*.{xsl,xml} ; \
+ do \
+ cp doc/userman/$(DBLDOLLAR)f
$(PKGNAME)/doc/userman ; \
+ done
+ </command>
+ <command>
+ for d in refman userman ; do \
+ for f in *.{css,html} ; do \
+ cp
doc/$(DBLDOLLAR)d/html/$(DBLDOLLAR)f \
+
$(PKGNAME)/doc/$(DBLDOLLAR)d/html ; \
+ done ; \
+ done ; \
+ cp doc/refman/html/*.png
$(PKGNAME)/doc/refman/html
+ </command>
+
+ <!-- examples subdir -->
+ <command>
+ cp examples/*.{cpp,h} $(PKGNAME)/examples
+ </command>
+
+ <!-- lib subdir -->
+ <command>
+ cp lib/*.{cpp,h,in,pl} $(PKGNAME)/lib
+ </command>
+ </action>
+
+ <action id="rpm-setup">
+ <command>cp $(PKGNAME).tar.gz
/usr/src/redhat/SOURCES</command>
+ <depends>dist</depends>
+ </action>
+
+ <action id="rpm">
+ <command>cd /usr/src/redhat/SPECS</command>
+ <command>rpmbuild -bb mysql++.spec</command>
+ <depends>rpm-setup</depends>
+ </action>
+
+ <action id="srpm">
+ <command>cd /usr/src/redhat/SPECS</command>
+ <command>rpmbuild -bs mysql++.spec</command>
+ <depends>rpm-setup</depends>
+ </action>
+
+ <action id="ebuild">
+ <depends>dist</depends>
+ <command>cp $(PKGNAME).tar.gz
/usr/portage/distfiles</command>
+ <command>
+ cp mysql++.ebuild
/usr/portage/dev-db/mysql++/$(PKGNAME).ebuild
+ </command>
+ <command>
+ ebuild
/usr/portage/dev-db/mysql++/$(PKGNAME).ebuild digest
+ </command>
</action>
</if>
</makefile>
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits