mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 14:56:37 +00:00
buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> (cherry picked from commit bcef9bde68a920a4d204beb8ec1d5f334f7fbb78) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9462dbb422
commit
0ac0c01b14
7
Makefile
7
Makefile
@ -1,18 +1,19 @@
|
|||||||
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
|
include /usr/share/dpkg/architecture.mk
|
||||||
include defines.mk
|
include defines.mk
|
||||||
|
|
||||||
export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
|
export VERSION=${DEB_VERSION_UPSTREAM}
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
SUBDIRS = aplinfo PVE bin www services configs network-hooks test
|
SUBDIRS = aplinfo PVE bin www services configs network-hooks test
|
||||||
|
|
||||||
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
# possibly set via debian/rules(.env)
|
# possibly set via debian/rules(.env)
|
||||||
REPOID?=$(shell git rev-parse --short=8 HEAD)
|
REPOID?=$(shell git rev-parse --short=8 HEAD)
|
||||||
|
|
||||||
DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb
|
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
|
||||||
|
|
||||||
all: ${SUBDIRS}
|
all: ${SUBDIRS}
|
||||||
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
|
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
VERSION=5.4
|
|
||||||
PACKAGE=pve-manager
|
PACKAGE=pve-manager
|
||||||
PACKAGERELEASE=11
|
|
||||||
|
|
||||||
BINDIR=${DESTDIR}/usr/bin
|
BINDIR=${DESTDIR}/usr/bin
|
||||||
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
||||||
|
Loading…
Reference in New Issue
Block a user