]> git.proxmox.com Git - pve-common.git/blobdiff - Makefile
PVE/Subscription.pm - check if we have a key
[pve-common.git] / Makefile
index fbedf3d3428008ad008480122b3b0a31d2460e35..20189c928b3c0eadbae768f8094f0ce41ffb8d7c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 VERSION=5.0
-PKGREL=1
+PKGREL=18
 
 PACKAGE=libpve-common-perl
 
@@ -11,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
 
@@ -29,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
@@ -45,5 +45,5 @@ check:
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
+       tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch