mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-17 12:45:23 +00:00
buildsys: introduce BUILDDIR variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f943f4d13e
commit
dbaa6e520a
14
Makefile
14
Makefile
@ -6,6 +6,8 @@ PACKAGE=libpve-common-perl
|
|||||||
ARCH=all
|
ARCH=all
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
|
BUILDDIR ?= build
|
||||||
|
|
||||||
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
||||||
|
|
||||||
all: ${DEB}
|
all: ${DEB}
|
||||||
@ -18,16 +20,16 @@ dinstall: deb
|
|||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb ${DEB}:
|
deb ${DEB}:
|
||||||
$(MAKE) -C test check
|
$(MAKE) -C test check
|
||||||
rm -rf build
|
rm -rf ${BUILDDIR}
|
||||||
rsync -a src/ build
|
rsync -a src/ ${BUILDDIR}
|
||||||
rsync -a debian/ build/debian
|
rsync -a debian/ ${BUILDDIR}/debian
|
||||||
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
||||||
cd build; dpkg-buildpackage -b -us -uc
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
|
rm -rf *~ *.deb *.changes ${BUILDDIR} ${PACKAGE}-*.tar.gz *.buildinfo
|
||||||
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user