From 2cbf451de21947ecc584a6cd553a16b714d87062 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 7 May 2023 14:23:15 +0200 Subject: [PATCH] buildsys: automatically derive upload dist as defined in debian/changelog Signed-off-by: Thomas Lamprecht --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2629cb3..1dd0eef 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ -include /usr/share/dpkg/pkg-info.mk -include /usr/share/dpkg/architecture.mk +include /usr/share/dpkg/default.mk PACKAGE=corosync @@ -74,8 +73,9 @@ submodule: test -f "$(CSSRC)/INSTALL" || git submodule update --init $(CSSRC) .PHONY: upload +upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) upload: $(DEBS) - tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bookworm --arch $(DEB_BUILD_ARCH) + tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) --arch $(DEB_BUILD_ARCH) .PHONY: clean distclean: clean