]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
pmxcfs: only exit parent when successfully started
[pve-cluster.git] / Makefile
index 9cf19b4ddd6b5c721ffd215885b41b874cf6b1e1..bc3551266b72e7422a8f20f8abad09b6498f1ba0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,6 @@
-RELEASE=4.2
-
 PACKAGE=pve-cluster
 PKGVER=4.0
-PKGREL=45
+PKGREL=54
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
@@ -10,7 +8,7 @@ GITVERSION:=$(shell cat .git/refs/heads/master)
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
 DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb
 
-
+PERL_APIVER := `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
 
 all: ${DEB} ${DBG_DEB}
 
@@ -22,11 +20,13 @@ dinstall: ${DEB}
        dpkg -i ${DEB} 
 
 .PHONY: deb
-deb ${DEB} ${DBG_DEB}:
+deb ${DBG_DEB}: ${DEB}
+${DEB}:
        rm -f *.deb
        rm -rf build
-       rsync -a --exclude .svn data/ build
+       cp -a data build
        cp -a debian build/debian
+       sed -e "s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian/control.in > build/debian/control
        echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
        cd build; ./autogen.sh
        cd build; dpkg-buildpackage -rfakeroot -b -us -uc
@@ -35,8 +35,8 @@ deb ${DEB} ${DBG_DEB}:
 
 .PHONY: upload
 upload: ${DEB} ${DBG_DEB}
-       tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com upload
+       tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com -- upload --product pve --dist jessie --arch ${ARCH}
 
 .PHONY: clean
 clean:
-       rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR}
+       rm -rf *~ build *_${ARCH}.deb *.changes *.dsc ${CSDIR} *.buildinfo