mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-08-15 08:24:43 +00: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
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
|
include /usr/share/dpkg/architecture.mk
|
||||||
PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
|
|
||||||
|
|
||||||
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
|
PACKAGE=libpve-guest-common-perl
|
||||||
DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
|
|
||||||
|
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
||||||
|
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||||
|
|
||||||
|
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
@ -12,20 +15,21 @@ DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
|||||||
|
|
||||||
all:
|
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
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}:
|
${DEB}: ${BUILDDIR}
|
||||||
rm -rf build
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
rsync -a * build
|
|
||||||
cd build; dpkg-buildpackage -b -us -uc
|
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
.PHONY: dsc
|
.PHONY: dsc
|
||||||
dsc: ${DSC}
|
dsc: ${DSC}
|
||||||
${DSC}:
|
${DSC}: ${BUILDDIR}
|
||||||
rm -rf build
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||||
rsync -a * build
|
|
||||||
cd build; dpkg-buildpackage -S -us -uc -d -nc
|
|
||||||
lintian ${DSC}
|
lintian ${DSC}
|
||||||
|
|
||||||
install: PVE
|
install: PVE
|
||||||
@ -46,7 +50,7 @@ upload: ${DEB}
|
|||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
|
rm -rf ${BUILDDIR} *.deb *.dsc *.changes *.buildinfo *.tar.gz
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: ${DEB}
|
dinstall: ${DEB}
|
||||||
|
Loading…
Reference in New Issue
Block a user