X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=599e99f17f25762cc6e9d793e91c25f8a64f75bf;hp=ecc27ca9e5e96a70c317f4dd6e40f5a1a774c51c;hb=dbaa6e520aa35c69f30eaea88e9ee73917befd81;hpb=4860c2b79d6c8489a229dc8d37dc9bf5d637fdc2 diff --git a/Makefile b/Makefile index ecc27ca..599e99f 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,12 @@ VERSION=5.0 -PKGREL=8 +PKGREL=34 PACKAGE=libpve-common-perl -PREFIX=/usr -BINDIR=${PREFIX}/bin -MANDIR=${PREFIX}/share/man -DOCDIR=${PREFIX}/share/doc -MAN1DIR=${MANDIR}/man1/ -PERLDIR=${PREFIX}/share/perl5 - ARCH=all -GITVERSION:=$(shell cat .git/refs/heads/master) +GITVERSION:=$(shell git rev-parse HEAD) + +BUILDDIR ?= build DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb @@ -25,16 +20,16 @@ dinstall: deb .PHONY: deb deb ${DEB}: $(MAKE) -C test check - rm -rf build - 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 + rm -rf ${BUILDDIR} + rsync -a src/ ${BUILDDIR} + rsync -a debian/ ${BUILDDIR}/debian + echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE + cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc lintian ${DEB} .PHONY: clean clean: - rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo + rm -rf *~ *.deb *.changes ${BUILDDIR} ${PACKAGE}-*.tar.gz *.buildinfo .PHONY: distclean distclean: clean @@ -45,5 +40,5 @@ check: .PHONY: upload upload: ${DEB} - tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch + tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch