mirror of
git://git.proxmox.com/git/pve-guest-common.git
synced 2025-01-18 06:03:46 +03:00
buildsys: use dpkg-dev makefile helpers for pkg info
while we already dynamically resolved the version from the changelog using dpkg-parsechangelog, and those dpkg-dev helpers also use that tool, let's switch to them nonetheless to have a bit more stream lined dev environment. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
eed4dab840
commit
130a35c615
32
Makefile
32
Makefile
@ -1,9 +1,12 @@
|
||||
PACKAGE=libpve-guest-common-perl
|
||||
PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
|
||||
PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
include /usr/share/dpkg/architecture.mk
|
||||
|
||||
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
|
||||
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
|
||||
PACKAGE=libpve-guest-common-perl
|
||||
|
||||
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||
|
||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||
|
||||
DESTDIR=
|
||||
|
||||
@ -12,20 +15,21 @@ DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||
|
||||
all:
|
||||
|
||||
${BUILDDIR}:
|
||||
rm -rf ${BUILDDIR}
|
||||
rsync -a * ${BUILDDIR}
|
||||
echo "git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
||||
|
||||
.PHONY: deb
|
||||
deb: ${DEB}
|
||||
${DEB}:
|
||||
rm -rf build
|
||||
rsync -a * build
|
||||
cd build; dpkg-buildpackage -b -us -uc
|
||||
${DEB}: ${BUILDDIR}
|
||||
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||
lintian ${DEB}
|
||||
|
||||
.PHONY: dsc
|
||||
dsc: ${DSC}
|
||||
${DSC}:
|
||||
rm -rf build
|
||||
rsync -a * build
|
||||
cd build; dpkg-buildpackage -S -us -uc -d -nc
|
||||
${DSC}: ${BUILDDIR}
|
||||
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||
lintian ${DSC}
|
||||
|
||||
install: PVE
|
||||
@ -46,7 +50,7 @@ upload: ${DEB}
|
||||
distclean: clean
|
||||
|
||||
clean:
|
||||
rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
|
||||
rm -rf ${BUILDDIR} *.deb *.dsc *.changes *.buildinfo *.tar.gz
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: ${DEB}
|
||||
|
Loading…
x
Reference in New Issue
Block a user