]> git.proxmox.com Git - pve-common.git/blobdiff - Makefile
daemon: refactor and cleanup
[pve-common.git] / Makefile
index a9072a17cf0afa305716e326275cd918508c89ff..427e9499e41af3745f1f86775dc0a83595fa6b2e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
-RELEASE=4.2
-
-VERSION=4.0
-PKGREL=72
+VERSION=5.0
+PKGREL=20
 
 PACKAGE=libpve-common-perl
 
@@ -13,7 +11,7 @@ MAN1DIR=${MANDIR}/man1/
 PERLDIR=${PREFIX}/share/perl5
 
 ARCH=all
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 
@@ -31,12 +29,12 @@ deb ${DEB}:
        rsync -a src/ build
        rsync -a debian/ build/debian
        echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
-       cd build; dpkg-buildpackage -rfakeroot -b -us -uc
+       cd build; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
 .PHONY: clean
 clean:         
-       rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz
+       rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
 
 .PHONY: distclean
 distclean: clean
@@ -47,5 +45,5 @@ check:
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload
+       tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch