X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=eacdd010c3555e675179bd21b4c274aba62a5940;hb=80ea69b416986455622821a4e8c6b74c19ca9362;hp=c0fe06daab097a13f3a00692aafde86d816b6471;hpb=16f2ad9717a796b0c157f77f44031b4d7c84dd5b;p=proxmox-widget-toolkit.git diff --git a/Makefile b/Makefile index c0fe06d..eacdd01 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,16 @@ include /usr/share/dpkg/pkg-info.mk export DEB_VERSION_UPSTREAM_REVISION export PACKAGE=proxmox-widget-toolkit -BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} + DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DEV_DEB=${PACKAGE}-dev_${DEB_VERSION_UPSTREAM_REVISION}_all.deb + +DEBS=${DEB} ${DEV_DEB} DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc -GITVERSION:=$(shell git rev-parse HEAD) +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} +${BUILDDIR}: GITVERSION:=$(shell git rev-parse HEAD) ${BUILDDIR}: rm -rf ${BUILDDIR} ${BUILDDIR}.tmp cp -a src/ ${BUILDDIR}.tmp @@ -16,10 +20,10 @@ ${BUILDDIR}: mv ${BUILDDIR}.tmp/ ${BUILDDIR} .PHONY: deb -deb: ${DEB} -${DEB}: ${BUILDDIR} +deb: ${DEBS} +${DEBS}: ${BUILDDIR} cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc - lintian ${DEB} + lintian ${DEBS} .PHONY: dsc dsc: ${DSC} @@ -32,8 +36,9 @@ lint: ${JSSRC} ${MAKE} -C src lint .PHONY: upload -upload: ${DEB} - tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster +upload: ${DEBS} + tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye + tar cf - ${DEV_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist bullseye distclean: clean clean: @@ -42,5 +47,5 @@ clean: find . -name '*~' -exec rm {} ';' .PHONY: dinstall -dinstall: ${DEB} - dpkg -i ${DEB} +dinstall: ${DEBS} + dpkg -i ${DEBS}