X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=599e99f17f25762cc6e9d793e91c25f8a64f75bf;hb=dbaa6e520aa35c69f30eaea88e9ee73917befd81;hp=a453959b83cc53c9bb36490db168ec98dea4c6dd;hpb=68ab3fce3171930428fdfe9e51497ab83754a48c;p=pve-common.git diff --git a/Makefile b/Makefile index a453959..599e99f 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,13 @@ VERSION=5.0 -PKGREL=30 +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 git rev-parse HEAD) +BUILDDIR ?= build + DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb all: ${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 -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