]> granicus.if.org Git - pgbouncer/commitdiff
make zip: move zip naming to separate target
authorMarko Kreen <markokr@gmail.com>
Mon, 28 Feb 2011 22:09:10 +0000 (00:09 +0200)
committerMarko Kreen <markokr@gmail.com>
Mon, 28 Feb 2011 22:09:10 +0000 (00:09 +0200)
otherwise it does not pick up correct version number from config.mak

Makefile

index 96954e0e2932f6c4743661db4a107b54ee0a61a7..e7576cefdf8d90ad32c358d22d6b81fe9ece8e85 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -224,15 +224,21 @@ zip = pgbouncer-$(PACKAGE_VERSION)-win32.zip
 
 zip: configure
        make distclean
-       ./configure i586-mingw32msvc --disable-debug --with-libevent=/opt/apps/win32
+       ./configure i586-mingw32msvc --disable-debug --with-libevent=/opt/apps/win32 --enable-evdns
        make -C doc html
        make pgbouncer.exe pgbevent.dll
        cp COPYRIGHT doc/COPYRIGHT.txt
        cp AUTHORS doc/AUTHORS.txt
+       make packzip
+
+packzip: pgbouncer.exe
        rm -f $(zip)
        zip $(zip) pgbouncer.exe pgbevent.dll doc/AUTHORS.txt doc/COPYRIGHT.txt doc/*.html
        rm -f doc/AUTHORS.txt doc/COPYRIGHT.txt
 
+zipupload: $(zip)
+       rsync $(zip) pgf:web/pgbouncer/htdocs/win32/
+
 stripped: $(exe) $(dll)
        $(STRIP) $(exe) $(dll)