X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=0c45312819885a011e53fb64331485210d2b29f6;hb=fbd10e04e73ae319f1c59f37344a60e9d640fe9d;hp=2401a3055f3a59985a54790bbae035c39cbb4bdc;hpb=008c3bb2d4e818c81abd510119f6f2c4e38006bf;p=pve-common.git diff --git a/Makefile b/Makefile index 2401a30..0c45312 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,13 @@ VERSION=5.0 -PKGREL=34 +PKGREL=38 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} @@ -23,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: