forked from proxmox-mirrors/proxmox-ve
36 lines
883 B
Makefile
36 lines
883 B
Makefile
include /usr/share/dpkg/default.mk
|
|
|
|
PACKAGE=proxmox-ve
|
|
|
|
GITVERSION:=$(shell git rev-parse HEAD)
|
|
|
|
PVE_DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
|
PVE_HEADERS_DEB=pve-headers_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
|
|
|
|
BUILD_DIR=build
|
|
|
|
DEBS=${PVE_DEB} ${PVE_HEADERS_DEB}
|
|
|
|
all: deb
|
|
deb: ${DEBS}
|
|
|
|
${PVE_HEADERS_DEB}: ${PVE_DEB}
|
|
${PVE_DEB}: debian
|
|
rm -rf ${BUILD_DIR}
|
|
mkdir -p ${BUILD_DIR}/debian
|
|
cp -ar debian/* ${BUILD_DIR}/debian/
|
|
echo "git clone git://git.proxmox.com/git/proxmox-ve.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian/SOURCE
|
|
cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us
|
|
lintian ${DEBS}
|
|
|
|
.PHONY: upload
|
|
upload: ${DEBS}
|
|
tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${DEB_BUILD_ARCH}
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *~ ${BUILD_DIR} *.deb *.dsc *.changes *.buildinfo
|