X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=87563eba37c35975ae81c305ad349d61b08e8db0;hb=3996a07a54d011f98fa09c9c17ac6ef6cb0b7dc8;hp=19a040429d6b140f938fab982081c904191929a2;hpb=a3fe0ccfab15d74e77cc463bca3fdb9b7fa537b8;p=pve-container.git diff --git a/Makefile b/Makefile index 19a0404..87563eb 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ -VERSION=1.0 PACKAGE=pve-container -PKGREL=94 +PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1 +PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2 -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) ARCH:=all -DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb +DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb all: ${DEB} @@ -22,13 +22,13 @@ ${DEB}: rsync -a src/ build rsync -a debian/ build/debian echo "git clone git://git.proxmox.com/git/pve-container\\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: make -C src clean - rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes + rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo find . -name '*~' -exec rm {} ';' .PHONY: distclean @@ -36,4 +36,4 @@ distclean: clean .PHONY: upload upload: ${DEB} - tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload + tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch