]> git.proxmox.com Git - qemu-server.git/blobdiff - Makefile
bump version to 3.1-13
[qemu-server.git] / Makefile
index feda0dbce829a4b97400d61dfb4080612ce56bec..8a4865f4759542cdf4a1692be4244aaf7fe710a3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-RELEASE=2.0
+RELEASE=3.1
 
-VERSION=2.0
+VERSION=3.1
 PACKAGE=qemu-server
-PKGREL=39
+PKGREL=13
 
 DESTDIR=
 PREFIX=/usr
@@ -19,6 +19,8 @@ export PERLDIR=${PREFIX}/share/perl5
 PERLINCDIR=${PERLDIR}/asm-x86_64
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
@@ -35,10 +37,10 @@ vzsyscalls.ph: vzsyscalls.h
         h2ph -d . vzsyscalls.h
 
 vmtar: vmtar.c utils.c
-       gcc -O2 -Wall -o vmtar vmtar.c
+       gcc -O2 -Werror -Wall -Wtype-limits -o vmtar vmtar.c
 
 sparsecp: sparsecp.c utils.c
-       gcc -O2 -Wall -o sparsecp sparsecp.c
+       gcc -O2 -Werror -Wall -Wtype-limits -o sparsecp sparsecp.c
 
 %.1.gz: %.1.pod
        rm -f $@
@@ -103,6 +105,7 @@ deb ${DEB}: ${PKGSOURCES}
        install -D -m 0644 copyright build/${DOCDIR}/${PACKAGE}/copyright
        install -m 0644 changelog.Debian build/${DOCDIR}/${PACKAGE}/
        gzip -9 build/${DOCDIR}/${PACKAGE}/changelog.Debian
+       echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout ${GITVERSION}" > build/${DOCDIR}/${PACKAGE}/SOURCE
        dpkg-deb --build build  
        mv build.deb ${DEB}
        lintian ${DEB}