X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=2701be6cfb500158d88c92d33af3b99ebf6cc325;hp=c054c44d0f805440d4ce2bdf89ac7c3992bdf2fc;hb=c03b7509063843b92ec292d2dd86308f669b2ab4;hpb=f943f4d13e0504498d070bf4b39130149a237f7e diff --git a/Makefile b/Makefile index c054c44..2701be6 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,13 @@ VERSION=5.0 -PKGREL=34 +PKGREL=35 PACKAGE=libpve-common-perl ARCH=all GITVERSION:=$(shell git rev-parse HEAD) +BUILDDIR ?= build + DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb all: ${DEB} @@ -16,21 +18,18 @@ 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 +deb ${DEB}: check + 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 - -.PHONY: distclean +.PHONY: clean distclean distclean: clean +clean: + rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo .PHONY: check check: