]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
bump version to 4.0-22
[pve-cluster.git] / Makefile
index 498e4a8c376caa898c4f19f90d1f019a5e5bd76c..f3333b4e94789449f261a10f2c5b46cb0cce0af2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,28 @@
-RELEASE=3.1
+RELEASE=4.0
 
 PACKAGE=pve-cluster
-PKGVER=3.0
-PKGREL=7
+PKGVER=4.0
+PKGREL=22
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
+DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb
 
 
-all: ${DEB}
+
+all: ${DEB} ${DBG_DEB}
 
 cpgtest: cpgtest.c
-       gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libcoroipcc) -o cpgtest
+       gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
 
 .PHONY: dinstall
 dinstall: ${DEB}
-       dpkg -i ${DEB}
+       dpkg -i ${DEB} 
 
-.PHONY: ${DEB}
-${DEB}:
+.PHONY: ${DEB} ${DBG_DEB}
+${DEB} ${DBG_DEB}:
        rm -rf build
        rsync -a --exclude .svn data/ build
        cp -a debian build/debian
@@ -31,12 +33,12 @@ ${DEB}:
 
 
 .PHONY: upload
-upload: ${DEB}
+upload: ${DEB} ${DBG_DEB}
        umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
        mkdir -p /pve/${RELEASE}/extra
        rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
        rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} /pve/${RELEASE}/extra
+       cp ${DEB} ${DBG_DEB} /pve/${RELEASE}/extra
        cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
        umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro