]> granicus.if.org Git - pgbouncer/commitdiff
make zip: shortcut to build -win32.zip
authorMarko Kreen <markokr@gmail.com>
Tue, 20 Dec 2011 15:13:26 +0000 (17:13 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 20 Dec 2011 15:13:26 +0000 (17:13 +0200)
Makefile

index 4fb77730ae7992f1ac0aabe14aac062dc8e99c54..fc87c03444acfc4a708c6113f949f53320ee9f22 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -110,3 +110,15 @@ config.mak:
 deb:
        debuild -b -us -uc
 
+zip: configure clean
+       rm -rf buildexe
+       mkdir buildexe
+       cd buildexe \
+               && ../configure --host=i586-mingw32msvc --disable-debug \
+                       --with-libevent=/opt/apps/win32 --enable-evdns \
+               && make \
+               && i586-mingw32msvc-strip pgbouncer.exe pgbevent.dll \
+               && zip pgbouncer.zip pgbouncer.exe pgbevent.dll doc/*.html
+       zip -l buildexe/pgbouncer.zip etc/pgbouncer.ini etc/userlist.txt
+       mv buildexe/pgbouncer.zip pgbouncer-$(PACKAGE_VERSION)-win32.zip
+